ID | Project | Category | Submitted / Last Updated |
---|---|---|---|
00934 | UserSpice | Misc | 2020-07-17 16:11:55 / 2020-10-08 04:15:09 |
Reported | Banging Heads | Assigned To | Unassigned |
Priority | none | Reported | 5.1.4 |
Status | closed fixed | Resolution Version and Commit | 5.1.5 4306f6 |
Summary | Remove twofa if statements in favor of plugin hooks | ||
Description |
<p>I would like to request that the following codes be removed in favor of adding them by plugin hooks to allow for different libraries of Two Factor since Two Factor is no longer in the core build.</p> <p>login.php</p> <p><code></code></p> <p><code>if($settings->twofa == 1){<br /> $google2fa = new PragmaRX\Google2FA\Google2FA();<br />}</code></p> <p>join.php</p> <p><code>if($settings->twofa == 1){</code><br /><code>$twoKey = $google2fa->generateSecretKey();</code><br /><code>$db->update('users',$theNewId,['twoKey' => $twoKey]);</code><br /><code>}</code></p> <p><code></code></p> <p> </p> |
xxxxxxxxxx
<p>Also removing 2fa stuff from the admin_user view</p>
xxxxxxxxxx
<p>Thanks for this!</p>