Commit cd2265e5 authored by David Surville's avatar David Surville
Browse files

Prise en compte de l'état du compte (actif ou suspendu) lors de l'authentification local et Ldap

La prise en compte pour les authentifications Cas et Shib nécessite plus de développement
parent f9d0dd34
Loading
Loading
Loading
Loading
+14 −0
Changes for config/module.config.php: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -302,6 +302,20 @@ return [
         * Accepted values: boolean true or false
         */
        'enable_display_name' => true,
        /**
         * Enable user state usage
         * Should user's state be used in the registration/login process?
         * Default value is true.
         * Accapted values: boolean true or false
         */
        'enable_user_state' => true,
        /**
         * States which are allowing user to login
         * When user tries to login, is his/her state one of the following?
         * Include null if you want user's with no state to login as well.
         * Allowed value types: null and integer
         */
        'allowed_login_states' => [1],
        /**
         * Authentication Adapters
         * Specify the adapters that will be used to try and authenticate the user
+1 −1
Changes for src/UnicaenAuthentification/Authentication/Adapter/AbstractDb.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ abstract class AbstractDb extends AbstractAdapter
                    ->setCode(AuthenticationResult::FAILURE_UNCATEGORIZED)
                    ->setMessages(["Ce compte utilisateur a été désactivé"]);
                $this->setSatisfied(false);
                return false;
                return true;
            }
        }