Some fixes for the new mobile apps (#4526)

This commit is contained in:
Daniel García
2024-04-27 23:24:04 +02:00
committed by GitHub
parent e9aa5a545e
commit 0fe93edea6
5 changed files with 35 additions and 26 deletions

View File

@@ -246,6 +246,7 @@ impl User {
"Email": self.email,
"EmailVerified": !CONFIG.mail_enabled() || self.verified_at.is_some(),
"Premium": true,
"PremiumFromOrganization": false,
"MasterPasswordHint": self.password_hint,
"Culture": "en-US",
"TwoFactorEnabled": twofactor_enabled,
@@ -257,6 +258,7 @@ impl User {
"ProviderOrganizations": [],
"ForcePasswordReset": false,
"AvatarColor": self.avatar_color,
"UsesKeyConnector": false,
"Object": "profile",
})
}