Fix some php doc
This commit is contained in:
@@ -23,16 +23,14 @@ class ResetTwoFactorCommand extends BaseCommand
|
|||||||
|
|
||||||
if (empty($userId)) {
|
if (empty($userId)) {
|
||||||
$output->writeln('<error>User not found</error>');
|
$output->writeln('<error>User not found</error>');
|
||||||
return false;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->userModel->update(array('id' => $userId, 'twofactor_activated' => 0, 'twofactor_secret' => ''))) {
|
if (!$this->userModel->update(array('id' => $userId, 'twofactor_activated' => 0, 'twofactor_secret' => ''))) {
|
||||||
$output->writeln('<error>Unable to update user profile</error>');
|
$output->writeln('<error>Unable to update user profile</error>');
|
||||||
return false;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$output->writeln('<info>Two-factor authentication disabled</info>');
|
$output->writeln('<info>Two-factor authentication disabled</info>');
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ interface CacheInterface
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param string $value
|
* @param mixed $value
|
||||||
*/
|
*/
|
||||||
public function set($key, $value);
|
public function set($key, $value);
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class FileCache extends BaseCache
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param string $value
|
* @param mixed $value
|
||||||
*/
|
*/
|
||||||
public function set($key, $value)
|
public function set($key, $value)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user