blob: 451738abe60c9b204a7127c7062adc62e9fe50e5 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace LdapRecord\Models\Concerns;
4
5trait 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 Benkard1ba53812022-12-27 17:32:58 +010034 return '';
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020035 }
36
37 /**
38 * Get the token value for the "remember me" session.
39 *
40 * @return string
41 */
42 public function getRememberToken()
43 {
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010044 return '';
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020045 }
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 Benkard1ba53812022-12-27 17:32:58 +010065 return '';
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020066 }
67}