Commit 64dca1bc authored by sstjohn's avatar sstjohn

--no commit message

--no commit message
parent 11aaa427
......@@ -66,6 +66,14 @@ class U2FPlugin extends Plugin
return true;
}
public function onStartSetUser($user)
{
if (User_u2f_data::get_device_requirement($user->id)) {
throw new Exception("secondary authentication required.");
}
return true;
}
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'U2F',
......
......@@ -7,6 +7,7 @@ if (!defined('STATUSNET')) {
class U2f_auth_startAction extends FormAction
{
protected $needLogin = false;
public function title()
{
return _m('TITLE', 'U2F');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment