diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 97d605425f..c76c5f9cf8 100755 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -108,12 +108,12 @@ class ProfileController extends Controller { if (config('app.lock_passwords')) { - return redirect()->route('account.password.index')->with('error', Lang::get('admin/users/table.lock_passwords')); + return redirect()->route('account.password.index')->with('error', trans('admin/users/table.lock_passwords')); } $user = Auth::user(); if ($user->ldap_import=='1') { - return redirect()->route('account.password.index')->with('error', Lang::get('admin/users/message.error.password_ldap')); + return redirect()->route('account.password.index')->with('error', trans('admin/users/message.error.password_ldap')); } $rules = array( diff --git a/app/Http/Transformers/LicensesTransformer.php b/app/Http/Transformers/LicensesTransformer.php index 92b3e4a5d6..f3644dd4d0 100644 --- a/app/Http/Transformers/LicensesTransformer.php +++ b/app/Http/Transformers/LicensesTransformer.php @@ -30,7 +30,6 @@ class LicensesTransformer 'purchase_order' => e($license->purchase_order), 'purchase_date' => Helper::getFormattedDateObject($license->purchase_date, 'date'), 'purchase_cost' => e($license->purchase_cost), - 'depreciation' => ($license->depreciation) ? ['id' => (int) $license->depreciation->id,'name'=> e($license->depreciation->name)] : null, 'notes' => e($license->notes), 'expiration_date' => Helper::getFormattedDateObject($license->expiration_date, 'date'), 'total_seats' => (int) $license->seats, diff --git a/resources/views/account/change-password.blade.php b/resources/views/account/change-password.blade.php index f91016287f..e612769eb2 100755 --- a/resources/views/account/change-password.blade.php +++ b/resources/views/account/change-password.blade.php @@ -21,18 +21,16 @@
-
+
{!! $errors->first('current_password', ' :message') !!}
- -
+ +
{!! $errors->first('password', ' :message') !!}
@@ -40,10 +38,8 @@
- -
+ +
{!! $errors->first('password_confirm', ' :message') !!} @if (config('app.lock_passwords'))