mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-01 08:00:47 +08:00
Fix backup code format in db
- remove unnecessary function
This commit is contained in:
parent
447e419ddf
commit
10f198553c
1 changed files with 1 additions and 10 deletions
|
@ -1322,16 +1322,7 @@ class User implements UserInterface, EquatableInterface, PasswordAuthenticatedUs
|
|||
if ($key !== false){
|
||||
unset($this->backupCodes[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a backup code
|
||||
*/
|
||||
public function addBackUpCode(string $backUpCode): void
|
||||
{
|
||||
if (!in_array($backUpCode, $this->backupCodes)) {
|
||||
$this->backupCodes[] = $backUpCode;
|
||||
}
|
||||
$this->backupCodes = array_values($this->backupCodes);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue