Skip to content

Commit eb7c3d2

Browse files
Merge pull request #405 from vidhyut-pandya/develop
Issue : #403
2 parents 97149f4 + 8c7f1aa commit eb7c3d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Repositories/Backend/Access/User/UserRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function updatePassword($user, $input)
175175
$user = $this->find(access()->id());
176176

177177
if (Hash::check($input['old_password'], $user->password)) {
178-
$user->password = bcrypt($input['password']);
178+
$user->password = $input['password'];
179179

180180
if ($user->save()) {
181181
event(new UserPasswordChanged($user));
@@ -387,7 +387,7 @@ protected function createUserStub($input)
387387
$user->first_name = $input['first_name'];
388388
$user->last_name = $input['last_name'];
389389
$user->email = $input['email'];
390-
$user->password = bcrypt($input['password']);
390+
$user->password = $input['password'];
391391
$user->status = isset($input['status']) ? 1 : 0;
392392
$user->confirmation_code = md5(uniqid(mt_rand(), true));
393393
$user->confirmed = isset($input['confirmed']) ? 1 : 0;

app/Repositories/Frontend/Access/User/UserRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function create(array $data, $provider = false)
9696
$user->email = $data['email'];
9797
$user->confirmation_code = md5(uniqid(mt_rand(), true));
9898
$user->status = 1;
99-
$user->password = $provider ? null : bcrypt($data['password']);
99+
$user->password = $provider ? null : $data['password'];
100100
$user->is_term_accept = $data['is_term_accept'];
101101

102102
// If users require approval, confirmed is false regardless of account type
@@ -284,7 +284,7 @@ public function changePassword($input)
284284
$user = $this->find(access()->id());
285285

286286
if (Hash::check($input['old_password'], $user->password)) {
287-
$user->password = bcrypt($input['password']);
287+
$user->password = $input['password'];
288288

289289
if ($user->save()) {
290290
$user->notify(new UserChangedPassword($input['password']));

0 commit comments

Comments
 (0)