| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class AuthStrategy { |
||
| 6 | |||
| 7 | // Table mysql using |
||
| 8 | const table = "login"; |
||
| 9 | |||
| 10 | // Route logout |
||
| 11 | const logout = "../login"; |
||
| 12 | |||
| 13 | // Ignore key init session |
||
| 14 | const ignoreSession = ["password"]; |
||
| 15 | |||
| 16 | const login = [ |
||
| 17 | // fields POST and COLUMNS |
||
| 18 | "email", "password" |
||
| 19 | ]; |
||
| 20 | |||
| 21 | const register = [ |
||
| 22 | // fields POST and COLUMNS |
||
| 23 | "email", "password", "name", "icone" |
||
| 24 | ]; |
||
| 25 | |||
| 26 | public static function extendsRegister($data){ |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function extendsValidate($data){ |
||
| 37 |