-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13343 from snipe/fixes/re-scramble_password_if_ld…
…ap_pw_sync_not_enabled Fixed #13336 - Save unhashed password if no password provided
- Loading branch information
Showing
6 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -456,6 +456,22 @@ public function checkoutRequests() | |
return $this->belongsToMany(Asset::class, 'checkout_requests', 'user_id', 'requestable_id')->whereNull('canceled_at'); | ||
} | ||
|
||
/** | ||
* Set a common string when the user has been imported/synced from: | ||
* | ||
* - LDAP without password syncing | ||
* - SCIM | ||
* - CSV import where no password was provided | ||
* | ||
* @author A. Gianotto <[email protected]> | ||
* @since [v6.2.0] | ||
* @return string | ||
*/ | ||
public function noPassword() | ||
{ | ||
return "*** NO PASSWORD ***"; | ||
} | ||
|
||
|
||
/** | ||
* Query builder scope to return NOT-deleted users | ||
|