Can enforce 2FA for specific clients
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user