resetPassword.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. @extends('auth.layouts')
  2. @section('title', trans('auth.password.reset.attribute'))
  3. @section('content')
  4. @if (Session::has('successMsg'))
  5. <x-alert type="success" :message="Session::pull('successMsg')" />
  6. @endif
  7. @if ($errors->any())
  8. <x-alert type="danger" :message="$errors->all()" />
  9. @endif
  10. <form method="post" action="{{ route('resetPasswd') }}">
  11. @csrf
  12. @if (sysConfig('password_reset_notification'))
  13. <div class="form-title">
  14. {{ trans('auth.password.reset.attribute') }}
  15. </div>
  16. <div class="form-group form-material floating" data-plugin="formMaterial">
  17. <input class="form-control" name="username" type="text" value="{{ old('username') }}" autofocus required />
  18. <label class="floating-label" for="username">
  19. {{ sysConfig('username_type') === 'email' || sysConfig('username_type') === null ? ucfirst(trans('validation.attributes.email')) : trans('model.user.username') }}
  20. </label>
  21. </div>
  22. @else
  23. <x-alert type="danger" :message="trans('auth.password.reset.error.disabled')" />
  24. @endif
  25. <a class="btn btn-danger btn-lg {{ sysConfig('password_reset_notification') ? 'float-left' : 'btn-block' }}" href="{{ route('login') }}">
  26. {{ trans('common.back') }}
  27. </a>
  28. @if (sysConfig('password_reset_notification'))
  29. <button class="btn btn-primary btn-lg float-right" type="submit">{{ trans('common.submit') }}</button>
  30. @endif
  31. </form>
  32. @endsection