Skip to content

Commit d37592d

Browse files
author
atisne
committed
Make the plugin compliant with authsplit one
Events must also be registered when oauth plugin is used as primary plugin by authsplit plugin.
1 parent 90b4dfc commit d37592d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action/login.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public function __construct()
4040
public function register(EventHandler $controller)
4141
{
4242
global $conf;
43-
if ($conf['authtype'] != 'oauth') return;
43+
if (($conf['authtype'] != 'oauth')
44+
or ($conf['authtype'] == 'authsplit' and $conf['plugin']['authsplit']['primary_authplugin'] != 'oauth')) return;
4445

4546
$conf['profileconfirm'] = false; // password confirmation doesn't work with oauth only users
4647

0 commit comments

Comments
 (0)