@@ -28,8 +28,8 @@ interface UserRepositoryInterface
28
28
```
29
29
30
30
It contains only the ` authenticate() ` function, to authenticate the user's
31
- credential. If authenticated, the result will be a ` UserInterface ` instance,
32
- otherwise a ` null ` value is returned.
31
+ credential. If authenticated, the result will be a ` UserInterface ` instance;
32
+ otherwise, a ` null ` value is returned.
33
33
34
34
## Configure the user repository
35
35
@@ -81,7 +81,7 @@ return [
81
81
'password' => 'password field name',
82
82
],
83
83
'sql_get_roles' => 'SQL to retrieve roles with :identity parameter',
84
- 'sql_get_details' => 'SQL to retrieve user details by :identity'
84
+ 'sql_get_details' => 'SQL to retrieve user details by :identity',
85
85
],
86
86
],
87
87
];
@@ -110,10 +110,11 @@ typical query might look like the following:
110
110
SELECT role FROM user WHERE username = :identity
111
111
```
112
112
113
- The ` sql_get_details ` parameter is similar to ` sql_get_roles ` , it specified the
113
+ The ` sql_get_details ` parameter is similar to ` sql_get_roles ` : it specifies the
114
114
SQL query for retrieving the user's additional details, if any.
115
+
115
116
For instance, if a user has an email field this can be returned as additional
116
- detail using the query as follows :
117
+ detail using the following query :
117
118
118
119
``` sql
119
120
SELECT email FROM user WHERE username = :identity
0 commit comments