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

Commit 01821b1

Browse files
committed
Tweak comments.
1 parent e809926 commit 01821b1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Middleware/WindowsAuthenticate.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ protected function retrieveAuthenticatedUser($key, $username)
9797
$resolver->getEloquentUsername() => $user->getFirstAttribute($resolver->getLdapUsername()),
9898
];
9999

100-
// Here we'll import the AD user. If the user already exists in our local
101-
// database, it will be returned from the importer. We also won't pass
102-
// in any password key into the credentials array so the importer
103-
// assigns a random 16 character password for us.
100+
// Here we'll import the AD user. If the user already exists in
101+
// our local database, it will be returned from the importer.
104102
$model = $this->getImporter()->run($user, $this->getModel(), $credentials);
105103

104+
// We'll assign a random password for the authenticating user.
106105
$password = str_random();
107106

108107
// Set the models password.

0 commit comments

Comments
 (0)