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:
Spitzer_Daniel
2023-08-28 15:25:59 +02:00
parent f95d0b0074
commit 28ca65fa6d
6 changed files with 33 additions and 25 deletions

View File

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