57 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
define("MESSAGES", [
 | 
						|
    "old_password_mismatch" => [
 | 
						|
        "string" => "current password incorrect",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "new_password_mismatch" => [
 | 
						|
        "string" => "new password mismatch",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "weak_password" => [
 | 
						|
        "string" => "weak password",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "password_updated" => [
 | 
						|
        "string" => "password updated",
 | 
						|
        "type" => "success"
 | 
						|
    ],
 | 
						|
    "2fa_removed" => [
 | 
						|
        "string" => "2fa removed",
 | 
						|
        "type" => "success"
 | 
						|
    ],
 | 
						|
    "2fa_enabled" => [
 | 
						|
        "string" => "2fa enabled",
 | 
						|
        "type" => "success"
 | 
						|
    ],
 | 
						|
    "invalid_parameters" => [
 | 
						|
        "string" => "invalid parameters",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "password_500" => [
 | 
						|
        "string" => "password on 500 list",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "account_state_error" => [
 | 
						|
        "string" => "account state error",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "ldap_error" => [
 | 
						|
        "string" => "ldap server error",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "passwords_same" => [
 | 
						|
        "string" => "old and new passwords match",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "password_complexity" => [
 | 
						|
        "string" => "password complexity insufficent",
 | 
						|
        "type" => "danger"
 | 
						|
    ],
 | 
						|
    "generic_op_error" => [
 | 
						|
        "string" => "generic op error",
 | 
						|
        "type" => "danger"
 | 
						|
    ]
 | 
						|
]);
 |