mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
All new translations for #218
This commit is contained in:
@@ -60,7 +60,7 @@ class ProfileController extends Controller
|
||||
{
|
||||
// old, new1, new2
|
||||
if (!Hash::check($request->get('current_password'), Auth::user()->password)) {
|
||||
Session::flash('error', trans('firefly.invalid_current_password'));
|
||||
Session::flash('error', strval(trans('firefly.invalid_current_password')));
|
||||
|
||||
return redirect(route('profile.change-password'));
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class ProfileController extends Controller
|
||||
Auth::user()->password = bcrypt($request->get('new_password'));
|
||||
Auth::user()->save();
|
||||
|
||||
Session::flash('success', trans('firefly.password_changed'));
|
||||
Session::flash('success', strval(trans('firefly.password_changed')));
|
||||
|
||||
return redirect(route('profile'));
|
||||
}
|
||||
@@ -90,7 +90,7 @@ class ProfileController extends Controller
|
||||
{
|
||||
// old, new1, new2
|
||||
if (!Hash::check($request->get('password'), Auth::user()->password)) {
|
||||
Session::flash('error', trans('firefly.invalid_password'));
|
||||
Session::flash('error', strval(trans('firefly.invalid_password')));
|
||||
|
||||
return redirect(route('profile.delete-account'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user