Ekapp/skolehjem/resources/views/app/users/editpass.blade.php

25 lines
895 B
PHP
Raw Normal View History

2020-07-01 08:13:49 +00:00
@extends("app.layout.base")
@section("title")
Account
@endsection
@section("content")
<main>
<h1 class="text-center sde-blue mt-0">Konto</h1>
<form method="post" action="{{ route("users.update", ['user' => Auth::user()]) }}">
@csrf
@method("put")
<span>Nuværende Password:</span>
<input type="password" name="oldpassword" id="old" required>
<span>Nyt Password:</span>
<input type="password" name="password" id="new" required>
<span>Bekræft Nyt Password:</span>
<input type="password" name="confirmpassword" id="confirm" required>
{!! session()->get('error#notsamepass') !!}
{!! session()->get('error#oldpass') !!}
2020-07-01 08:13:49 +00:00
<button type="submit" class="btn text-center btn-sde-blue mt-1">Rediger</button>
</form>
</main>
@endsection