started work on OTP and disabled registration

This commit is contained in:
Kwesi Banson Jnr
2026-08-26 23:03:11 +00:00
parent 006a974044
commit ff66dbbabe
13 changed files with 938 additions and 3 deletions

View File

@@ -0,0 +1,48 @@
@extends('layouts.app')
@section('content')
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-5">
<div class="card shadow-sm border-0">
<div class="card-body p-4 text-center">
<i class="bi bi-shield-lock text-primary mb-3" style="font-size: 3rem;"></i>
<h4 class="fw-bold mb-2">Two-Step Verification</h4>
<p class="text-secondary small mb-3">We've sent a 6-digit code to your email. Please enter it below to securely log in.</p>
<!-- Display Success Message -->
@if (session('success'))
<div class="alert alert-success py-2 small" role="alert">
<i class="bi bi-check-circle me-1"></i> {{ session('success') }}
</div>
@endif
<!-- Main Verification Form -->
<form method="POST" action="{{ route('otp.verify.post') }}">
@csrf
<div class="mb-3">
<input type="text" name="otp" class="form-control form-control-lg text-center fw-bold @error('otp') is-invalid @enderror" placeholder="000000" maxlength="6" autofocus required>
@error('otp')
<div class="invalid-feedback">{{ $message }}</div>
@enderror
</div>
<button type="submit" class="btn text-white w-100 fw-bold" style="background-color: #5c4df0;">Verify Code</button>
</form>
<!-- Resend Code Form -->
<div class="mt-4 pt-3 border-top">
<p class="text-secondary small mb-1">Didn't receive the code?</p>
<form method="POST" action="{{ route('otp.resend') }}">
@csrf
<button type="submit" class="btn btn-link text-decoration-none p-0 fw-bold" style="color: #5c4df0;">
Resend Email
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection