Fix enable/disable tfa

This commit is contained in:
Joseph Cohen
2015-01-09 14:21:53 -06:00
parent d0d812e4d3
commit 4ea90dcc2e
7 changed files with 31 additions and 23 deletions

View File

@@ -139,8 +139,8 @@ class User extends Model implements UserInterface, RemindableInterface
*
* @return bool
*/
public function getHasEnabled2FAAttribute()
public function getHasTwoFactorAttribute()
{
return (bool) (trim($this->google_2fa_secret) !== '');
return trim($this->google_2fa_secret) !== '';
}
}