MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / GetLoginUserByID

Method GetLoginUserByID

inventory/user.go:63–63  ·  view source on GitHub ↗

GetLoginUserByID returns the login user by its ID. It emits some errors and fallback to anonymous user.

(ctx context.Context, uid int)

Source from the content-addressed store, hash-verified

61 AnonymousUser(ctx context.Context) (*ent.User, error)
62 // GetLoginUserByID returns the login user by its ID. It emits some errors and fallback to anonymous user.
63 GetLoginUserByID(ctx context.Context, uid int) (*ent.User, error)
64 // GetLoginUserByEmail returns the login user by its WebDAV credentials.
65 GetActiveByDavAccount(ctx context.Context, email, pwd string) (*ent.User, error)
66 // SaveSettings saves user settings.

Callers 9

SetUserCtxFunction · 0.65
FinishPasskeyLoginMethod · 0.65
DownloadArchivedMethod · 0.65
CreateImportTaskMethod · 0.65
StatelessPrepareUploadFunction · 0.65
StatelessCompleteUploadFunction · 0.65
StatelessOnUploadFailedFunction · 0.65
StatelessCreateFileFunction · 0.65
ownerLockedMethod · 0.65

Implementers 1

userClientinventory/user.go

Calls

no outgoing calls

Tested by

no test coverage detected