Lae/resources/views/auth/passwords/email.blade.php

36 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2023-02-01 18:58:44 +00:00
@extends('layouts.app')
@section('content')
2023-02-19 16:56:47 +00:00
<h2>{{ __('Reset Password') }}</h2>
<form method="POST" action="{{ route('password.email') }}">
@csrf
<div class="form-group">
<label for="email" class="text-left ml-0">邮箱</label>
<input id="email" type="text"
class="form-control @error('email') is-invalid @enderror" name="email"
value="{{ old('email') }}" required autocomplete="email" autofocus placeholder="您的邮箱地址">
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
2023-02-01 18:58:44 +00:00
2023-02-19 16:56:47 +00:00
<button class="btn btn-primary btn-block mt-3" type="submit">
{{ __('Send Password Reset Link') }}
</button>
2023-02-01 18:58:44 +00:00
2023-02-19 16:56:47 +00:00
</form>
2023-02-01 18:58:44 +00:00
@auth
<script>
const input = document.getElementById('email');
input.value = "{{ auth()->user()->email }}";
input.readOnly = true;
</script>
@endauth
@endsection