You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-29 22:41:11 +03:00
reindent / reformat; add type hints for some of the app password stuff; try and make sure someone can only remove their own app password (see revokeAppPassword() )
This commit is contained in:
@ -19,10 +19,11 @@ $min_db_version = 1844; # update (at least) before a release with the latest fu
|
||||
|
||||
|
||||
/**
|
||||
* Check if the user already provided a password but not the second factor
|
||||
* Check if the user already provided a password but not the second factor
|
||||
* @return boolean
|
||||
*/
|
||||
function authentication_mfa_incomplete() {
|
||||
function authentication_mfa_incomplete()
|
||||
{
|
||||
if (isset($_SESSION['sessid'])) {
|
||||
if (isset($_SESSION['sessid']['mfa_complete'])) {
|
||||
if ($_SESSION['sessid']['mfa_complete'] == false) {
|
||||
|
Reference in New Issue
Block a user