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::get('successMsg'))
  5. <x-alert type="success" :message="Session::get('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 type="text" class="form-control" name="username" value="{{old('username')}}" autofocus required/>
  18. <label class="floating-label" for="username">
  19. {{sysConfig('username_type') === 'email' || sysConfig('username_type') === null ? trans('validation.attributes.email') : trans('validation.attributes.username')}}
  20. </label>
  21. </div>
  22. @else
  23. <x-alert type="danger" :message="trans('auth.password.reset.error.disabled' ,['email' => sysConfig('webmaster_email')])"/>
  24. @endif
  25. <a href="{{route('login')}}" class="btn btn-danger btn-lg {{sysConfig('password_reset_notification')? 'float-left':'btn-block'}}">
  26. {{trans('common.back')}}
  27. </a>
  28. @if(sysConfig('password_reset_notification'))
  29. <button type="submit" class="btn btn-primary btn-lg float-right">{{trans('common.submit')}}</button>
  30. @endif
  31. </form>
  32. @endsection