Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit db1457f

Browse files
committed
Change default configuration to be more compatible with stock migrations.
1 parent d3855f8 commit db1457f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Config/auth.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@
2626
| attribute to discover the user by. The reason for this is to hide
2727
| the attribute that you're using to login users.
2828
|
29-
| For example, if your input name is `username` and you'd like users
30-
| to login by their `samaccountname` attribute, then keep the
3129
| configuration below. However, if you'd like to login users
32-
| by their emails, then change `samaccountname` to `mail`.
33-
| and `username` to `email`.
30+
| by their usernames, then change `mail` to `samaccountname`.
31+
| and `email` to `username`.
3432
|
3533
| This must be an array with a key - value pair.
3634
|
3735
*/
3836

39-
'username_attribute' => ['username' => 'samaccountname'],
37+
'username_attribute' => ['email' => 'mail'],
4038

4139
/*
4240
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)