Corrected string for invalid current password
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
73f30c0a41
commit
c1eee2cc72
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ class ProfileController extends Controller
|
||||||
$validator = \Validator::make($request->all(), $rules);
|
$validator = \Validator::make($request->all(), $rules);
|
||||||
$validator->after(function ($validator) use ($request, $user) {
|
$validator->after(function ($validator) use ($request, $user) {
|
||||||
if (! Hash::check($request->input('current_password'), $user->password)) {
|
if (! Hash::check($request->input('current_password'), $user->password)) {
|
||||||
$validator->errors()->add('current_password', trans('validation.hashed_pass'));
|
$validator->errors()->add('current_password', trans('validation.custom.hashed_pass'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This checks to make sure that the user's password isn't the same as their username,
|
// This checks to make sure that the user's password isn't the same as their username,
|
||||||
|
|
Loading…
Add table
Reference in a new issue