BookStack/resources/views/auth/register-confirm-accept.blade.php
Dan Brown a1b1f8138a
Updated email confirmation flow so confirmation is done via POST
To avoid non-user GET requests (Such as those from email scanners)
auto-triggering the confirm submission. Made auto-submit the form via
JavaScript in this extra added step with user-link backup to keep
existing user flow experience.

Closes #3797
2022-11-12 15:11:59 +00:00

28 lines
988 B
PHP

@extends('layouts.simple')
@section('content')
<div class="container very-small mt-xl">
<div class="card content-wrap auto-height">
<h1 class="list-heading">{{ trans('auth.email_confirm_thanks') }}</h1>
<p class="mb-none">{{ trans('auth.email_confirm_thanks_desc') }}</p>
<div class="flex-container-row items-center wrap">
<div class="flex min-width-s">
@include('common.loading-icon')
</div>
<div class="flex min-width-s text-s-right">
<form component="auto-submit" action="{{ url('/register/confirm/accept') }}" method="post">
{{ csrf_field() }}
<input type="hidden" name="token" value="{{ $token }}">
<button class="text-button">{{ trans('common.continue') }}</button>
</form>
</div>
</div>
</div>
</div>
@stop