resetPassword.blade.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('auth.layouts')
  2. @section('title', trans('home.reset_password_title'))
  3. @section('css')
  4. <link href="/assets/pages/css/login-2.min.css" rel="stylesheet" type="text/css" />
  5. @endsection
  6. @section('content')
  7. @if (Session::get('errorMsg'))
  8. <div class="alert alert-danger">
  9. <button class="close" data-close="alert"></button>
  10. <span> {{Session::get('errorMsg')}} </span>
  11. </div>
  12. @endif
  13. @if (Session::get('successMsg'))
  14. <div class="alert alert-success">
  15. <button class="close" data-close="alert"></button>
  16. <span> {{Session::get('successMsg')}} </span>
  17. </div>
  18. @endif
  19. <!-- BEGIN FORGOT PASSWORD FORM -->
  20. <form class="forget-form" action="{{url('resetPassword')}}" method="post" style="display: block;">
  21. @if(\App\Components\Helpers::systemConfig()['is_reset_password'])
  22. <div class="form-title">
  23. <span class="form-title">{{trans('home.reset_password_title')}}</span>
  24. </div>
  25. <div class="form-group">
  26. <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="{{trans('home.username_placeholder')}}" name="username" value="{{Request::old('username')}}" required autofocus />
  27. <input type="hidden" name="_token" value="{{csrf_token()}}" />
  28. </div>
  29. @else
  30. <div class="alert alert-danger">
  31. <span> {{trans('home.system_down')}} </span>
  32. </div>
  33. @endif
  34. <div class="form-actions">
  35. <button type="button" class="btn btn-default" onclick="login()">{{trans('register.back')}}</button>
  36. @if(\App\Components\Helpers::systemConfig()['is_reset_password'])
  37. <button type="submit" class="btn red uppercase pull-right">{{trans('register.submit')}}</button>
  38. @endif
  39. </div>
  40. </form>
  41. <!-- END FORGOT PASSWORD FORM -->
  42. @endsection
  43. @section('script')
  44. <script type="text/javascript">
  45. // 登录
  46. function login() {
  47. window.location.href = '{{url('login')}}';
  48. }
  49. </script>
  50. @endsection