mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Workshop - Fixed email not being detected as verified
Settings - Fixed new releases not loading when there are more than 20
This commit is contained in:
1 parent
3394786d31
commit
fbf908c032
8 files changed
+24
-23
No files matched your search
@@ -266,6 +266,13 @@ internal class AuthenticationService : CorePropertyChanged, IAuthenticationServi
|
||||
_isLoggedInSubject.OnNext(false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool GetIsEmailVerified()
|
||||
{
|
||||
Claim? emailVerified = Claims.FirstOrDefault(c => c.Type == JwtClaimTypes.EmailVerified);
|
||||
return emailVerified?.Value.ToLower() == "true";
|
||||
}
|
||||
|
||||
private async Task<bool> InternalAutoLogin(bool force = false)
|
||||
{
|
||||
if (!force && _isLoggedInSubject.Value)
|
||||
|
||||
@@ -14,4 +14,5 @@ public interface IAuthenticationService : IProtectedArtemisService
|
||||
Task<bool> AutoLogin(bool force = false);
|
||||
Task Login(CancellationToken cancellationToken);
|
||||
void Logout();
|
||||
bool GetIsEmailVerified();
|
||||
}
|
||||
Reference in new issue
Block a user