Fix TOTP delete authorization bug

This commit is contained in:
Christophe Maudoux 2018-05-07 22:49:39 +02:00
parent dcb83d6a65
commit 6293e1c93b

View File

@ -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 );
}