Fix TOTP delete authorization bug
This commit is contained in:
parent
dcb83d6a65
commit
6293e1c93b
|
@ -264,7 +264,7 @@ sub run {
|
|||
}
|
||||
|
||||
# Check if unregistration is allowed
|
||||
unless ( $self->conf->{totp2fUserCanChangeKey} ) {
|
||||
unless ( $self->conf->{totp2fUserCanRemoveKey} ) {
|
||||
return $self->p->sendError( $req, 'notAuthorized', 400 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user