3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-06 00:15:26 +00:00

Fixed #6703 - fixes password confirmation (#6711)

* Fixed #6703 - fixes password confirmation

* Removed debugging

* Fixed tests

* I guess we use 10 as the settings for password min in tests

* One more try to fix tests - confirmation won’t validate until password validates
This commit is contained in:
snipe
2019-02-13 23:01:19 -08:00
committed by GitHub
parent 9035707bd6
commit 35ebe33e4e
10 changed files with 21 additions and 25 deletions

View File

@ -125,8 +125,7 @@ class ProfileController extends Controller
$rules = array(
'current_password' => 'required',
'password' => Setting::passwordComplexityRulesSaving('store'),
'password_confirm' => 'required|same:password',
'password' => Setting::passwordComplexityRulesSaving('store').'|confirmed',
);
$validator = \Validator::make($request->all(), $rules);