Loading modules/Auth/Controllers/InteractController.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class InteractController extends Controller return redirect() ->back() ->withInput() ->with('errors', service('validation')->getErrors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading modules/Auth/Controllers/MagicLinkController.php +2 −2 Original line number Diff line number Diff line Loading @@ -45,12 +45,11 @@ class MagicLinkController extends ShieldMagicLinkController 'new_password' => 'required|strong_password', ]; $userModel = new UserModel(); if (! $this->validate($rules)) { return redirect() ->back() ->withInput() ->with('errors', $userModel->errors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading @@ -60,6 +59,7 @@ class MagicLinkController extends ShieldMagicLinkController ->user() ->password = $validData['new_password']; $userModel = new UserModel(); if (! $userModel->update(auth()->user()->id, auth()->user())) { return redirect() ->back() Loading modules/Auth/Controllers/MyAccountController.php +2 −2 Original line number Diff line number Diff line Loading @@ -35,12 +35,11 @@ class MyAccountController extends BaseController 'new_password' => 'required|strong_password|differs[password]', ]; $userModel = new UserModel(); if (! $this->validate($rules)) { return redirect() ->back() ->withInput() ->with('errors', $userModel->errors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading @@ -66,6 +65,7 @@ class MyAccountController extends BaseController ->user() ->password = $validData['new_password']; $userModel = new UserModel(); if (! $userModel->update(auth()->user()->id, auth()->user())) { return redirect() ->back() Loading modules/Install/Controllers/InstallController.php +2 −2 Original line number Diff line number Diff line Loading @@ -290,12 +290,11 @@ class InstallController extends Controller 'password' => 'required|strong_password', ]; $userModel = new UserModel(); if (! $this->validate($rules)) { return redirect() ->back() ->withInput() ->with('errors', $userModel->errors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading @@ -308,6 +307,7 @@ class InstallController extends Controller 'is_owner' => true, ]); $userModel = new UserModel(); try { $userModel->save($user); } catch (ValidationException) { Loading themes/cp_auth/login.php +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ use Modules\Auth\Config\Auth; required="true" type="email" inputmode="email" autocomplete="email" autocomplete="username" autofocus="autofocus" /> Loading Loading
modules/Auth/Controllers/InteractController.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class InteractController extends Controller return redirect() ->back() ->withInput() ->with('errors', service('validation')->getErrors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading
modules/Auth/Controllers/MagicLinkController.php +2 −2 Original line number Diff line number Diff line Loading @@ -45,12 +45,11 @@ class MagicLinkController extends ShieldMagicLinkController 'new_password' => 'required|strong_password', ]; $userModel = new UserModel(); if (! $this->validate($rules)) { return redirect() ->back() ->withInput() ->with('errors', $userModel->errors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading @@ -60,6 +59,7 @@ class MagicLinkController extends ShieldMagicLinkController ->user() ->password = $validData['new_password']; $userModel = new UserModel(); if (! $userModel->update(auth()->user()->id, auth()->user())) { return redirect() ->back() Loading
modules/Auth/Controllers/MyAccountController.php +2 −2 Original line number Diff line number Diff line Loading @@ -35,12 +35,11 @@ class MyAccountController extends BaseController 'new_password' => 'required|strong_password|differs[password]', ]; $userModel = new UserModel(); if (! $this->validate($rules)) { return redirect() ->back() ->withInput() ->with('errors', $userModel->errors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading @@ -66,6 +65,7 @@ class MyAccountController extends BaseController ->user() ->password = $validData['new_password']; $userModel = new UserModel(); if (! $userModel->update(auth()->user()->id, auth()->user())) { return redirect() ->back() Loading
modules/Install/Controllers/InstallController.php +2 −2 Original line number Diff line number Diff line Loading @@ -290,12 +290,11 @@ class InstallController extends Controller 'password' => 'required|strong_password', ]; $userModel = new UserModel(); if (! $this->validate($rules)) { return redirect() ->back() ->withInput() ->with('errors', $userModel->errors()); ->with('errors', $this->validator->getErrors()); } $validData = $this->validator->getValidated(); Loading @@ -308,6 +307,7 @@ class InstallController extends Controller 'is_owner' => true, ]); $userModel = new UserModel(); try { $userModel->save($user); } catch (ValidationException) { Loading
themes/cp_auth/login.php +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ use Modules\Auth\Config\Auth; required="true" type="email" inputmode="email" autocomplete="email" autocomplete="username" autofocus="autofocus" /> Loading