blob: f287454eec37efa4b5a7dd53f1ab55585fb0fac0 [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 {
34 }
35
36 /**
37 * Get the token value for the "remember me" session.
38 *
39 * @return string
40 */
41 public function getRememberToken()
42 {
43 }
44
45 /**
46 * Set the token value for the "remember me" session.
47 *
48 * @param string $value
49 *
50 * @return void
51 */
52 public function setRememberToken($value)
53 {
54 }
55
56 /**
57 * Get the column name for the "remember me" token.
58 *
59 * @return string
60 */
61 public function getRememberTokenName()
62 {
63 }
64}