mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
Auth: Extend account settings with user details and avatar upload #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user