Auth: Extend account settings with user details and avatar upload #98

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-10-17 19:07:38 +02:00
parent 2cf420d04a
commit 837669f796
93 changed files with 2634 additions and 1212 deletions

View File

@@ -209,6 +209,14 @@ export default class Session {
return this.user;
}
getUserUID() {
if (this.user && this.user.UID) {
return this.user.UID;
} else {
return "u000000000000001"; // Unknown.
}
}
loginRequired() {
return !this.config.isPublic() && !this.isUser();
}