Conversation:
Notices
-
Progressing on adding google auth compatible two factor authentication to !gnusocial. I'm trying to figure out the trickiest bit so far which is hooking into the authentication process. There is an onEndPasswordCheck event which seems to give a hook into the login process but it has no way of affecting things downstream in an easy way. I'm suspecting I'm going to have to …
-
There's StartPasswordCheck too. Check out lib/authenticationplugin.php and for example the plugin AuthCrypt (default password management) to see how you can do stuff. Essentially, make a 2FA plugin that extends AuthenticationPlugin, and then in the event handler onStartCheckPassword do whatever you need to do to check the 2FA stuff. You might have to fiddle with it bei…