mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Set password property properly
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
611db4c0d2
commit
baffcbad71
|
@ -368,7 +368,7 @@ class UsersController extends Controller
|
|||
} else {
|
||||
$user->password = $user->noPassword();
|
||||
}
|
||||
|
||||
|
||||
app('App\Http\Requests\ImageUploadRequest')->handleImages($user, 600, 'image', 'avatars', 'avatar');
|
||||
|
||||
if ($user->save()) {
|
||||
|
|
|
@ -252,7 +252,7 @@ class Ldap extends Model
|
|||
$user->last_name = $item['lastname'];
|
||||
$user->username = $item['username'];
|
||||
$user->email = $item['email'];
|
||||
$user->noPassword();
|
||||
$user->password = $user->noPassword();
|
||||
|
||||
if (Setting::getSettings()->ldap_pw_sync == '1') {
|
||||
$user->password = bcrypt($password);
|
||||
|
|
Loading…
Reference in a new issue