Updated to woff2 fonts, added logging for login ops.
This commit is contained in:
parent
4f0342f8a5
commit
42be9d2062
|
@ -49,7 +49,9 @@ string generateTokenForLogin(string username, string password) {
|
||||||
throw new HttpStatusException(HttpStatus.UNAUTHORIZED, "Invalid credentials.");
|
throw new HttpStatusException(HttpStatus.UNAUTHORIZED, "Invalid credentials.");
|
||||||
}
|
}
|
||||||
User user = optionalUser.value;
|
User user = optionalUser.value;
|
||||||
|
infoF!"Verifying password for login attempt for user %s."(user.username);
|
||||||
auto verificationResult = verifyPassword(password, HashedPassword(user.passwordHash), PASSWORD_HASH_PEPPER);
|
auto verificationResult = verifyPassword(password, HashedPassword(user.passwordHash), PASSWORD_HASH_PEPPER);
|
||||||
|
infoF!"Verification result for login: %s"(verificationResult);
|
||||||
if (verificationResult == VerifyPasswordResult.Failure) {
|
if (verificationResult == VerifyPasswordResult.Failure) {
|
||||||
throw new HttpStatusException(HttpStatus.UNAUTHORIZED, "Invalid credentials.");
|
throw new HttpStatusException(HttpStatus.UNAUTHORIZED, "Invalid credentials.");
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -9,19 +9,19 @@
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'OpenSans';
|
font-family: 'OpenSans';
|
||||||
src: url('fonts/open-sans/OpenSans-VariableFont_wdth,wght.ttf');
|
src: url('fonts/open-sans/OpenSans-VariableFont_wdth,wght.woff2');
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'OpenSans';
|
font-family: 'OpenSans';
|
||||||
src: url('fonts/open-sans/OpenSans-Italic-VariableFont_wdth,wght.ttf');
|
src: url('fonts/open-sans/OpenSans-Italic-VariableFont_wdth,wght.woff2');
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'PlaywriteNL';
|
font-family: 'PlaywriteNL';
|
||||||
src: url('fonts/playwrite-nl/PlaywriteNL-VariableFont_wght.ttf');
|
src: url('fonts/playwrite-nl/PlaywriteNL-VariableFont_wght.woff2');
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue