1
0
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:
David Goodwin
2023-12-23 21:43:31 +00:00
parent 1dc6ebe834
commit 015d4ec9cd
10 changed files with 183 additions and 125 deletions

View File

@ -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) {