Can enforce 2FA for specific clients

This commit is contained in:
2024-03-27 20:59:29 +01:00
parent 64b1bd4de9
commit cf0e7e1e68
5 changed files with 20 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ pub struct CurrentUser {
}
impl CurrentUser {
pub fn should_request_2fa_for_critical_function(&self) -> bool {
pub fn should_request_2fa_for_critical_functions(&self) -> bool {
self.user.has_two_factor()
&& self
.last_2fa_auth