UserToken Methoden static hinzugefügt
Bug bei Passwortlängencheck gefixt JS Request URLs auf getUrl umgebaut 2FA Code wird bei eingabe nun üngiltig
This commit is contained in:
@@ -85,4 +85,15 @@ class UserTwofactor
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function removeCode()
|
||||
{
|
||||
$id = $this->UserId;
|
||||
$User = new User($id);
|
||||
$data = [];
|
||||
$data['twofactorcode']=NULL;
|
||||
$data['twofactortimestamp']=NULL;
|
||||
$User->update($data);
|
||||
$User->save();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user