Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 03db83b

Browse files
committed
Minor edits to user-repository doc
1 parent 91fcda5 commit 03db83b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/book/v1/user-repository.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ interface UserRepositoryInterface
2828
```
2929

3030
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.
3333

3434
## Configure the user repository
3535

@@ -81,7 +81,7 @@ return [
8181
'password' => 'password field name',
8282
],
8383
'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',
8585
],
8686
],
8787
];
@@ -110,10 +110,11 @@ typical query might look like the following:
110110
SELECT role FROM user WHERE username = :identity
111111
```
112112

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
114114
SQL query for retrieving the user's additional details, if any.
115+
115116
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:
117118

118119
```sql
119120
SELECT email FROM user WHERE username = :identity

0 commit comments

Comments
 (0)