Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | namespace LdapRecord\Models\Concerns; |
| 4 | |
| 5 | trait CanAuthenticate |
| 6 | { |
| 7 | /** |
| 8 | * Get the name of the unique identifier for the user. |
| 9 | * |
| 10 | * @return string |
| 11 | */ |
| 12 | public function getAuthIdentifierName() |
| 13 | { |
| 14 | return $this->guidKey; |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Get the unique identifier for the user. |
| 19 | * |
| 20 | * @return mixed |
| 21 | */ |
| 22 | public function getAuthIdentifier() |
| 23 | { |
| 24 | return $this->getConvertedGuid(); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Get the password for the user. |
| 29 | * |
| 30 | * @return string |
| 31 | */ |
| 32 | public function getAuthPassword() |
| 33 | { |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 34 | return ''; |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Get the token value for the "remember me" session. |
| 39 | * |
| 40 | * @return string |
| 41 | */ |
| 42 | public function getRememberToken() |
| 43 | { |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 44 | return ''; |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Set the token value for the "remember me" session. |
| 49 | * |
| 50 | * @param string $value |
| 51 | * |
| 52 | * @return void |
| 53 | */ |
| 54 | public function setRememberToken($value) |
| 55 | { |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Get the column name for the "remember me" token. |
| 60 | * |
| 61 | * @return string |
| 62 | */ |
| 63 | public function getRememberTokenName() |
| 64 | { |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 65 | return ''; |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 66 | } |
| 67 | } |