GeoNetAgent, LDAPWeb, server-audit, server-connection
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

69 lines
3.5 KiB

@extends('layouts.app')
@section('title', 'Forgot Password — ' . config('app.name'))
@section('content')
<div class="flex flex-col min-h-full">
<div class="flex justify-end px-4 pt-4 sm:px-6">
@include('partials.theme-toggle')
</div>
<div class="flex-1 flex items-center justify-center px-4 py-6">
<div class="w-full max-w-md space-y-4">
<div class="bg-slate-900 border border-slate-800 rounded-2xl p-6 sm:p-8 shadow-2xl">
<div class="mb-6">
<a href="{{ route('login') }}" class="text-sm text-cyan-400 hover:text-cyan-300">← Back to login</a>
<h1 class="text-2xl font-bold text-white mt-3">Forgot LDAP Password</h1>
<p class="text-slate-400 mt-2 text-sm">
Enter your domain username. A reset link will be sent to the email address registered in Active Directory.
</p>
</div>
@if (session('success'))
<div class="mb-4 rounded-lg bg-emerald-950/50 border border-emerald-800 text-emerald-200 px-4 py-3 text-sm">
{{ session('success') }}
</div>
@endif
@if (session('error'))
<div class="mb-4 rounded-lg bg-red-950/50 border border-red-800 text-red-200 px-4 py-3 text-sm">
{{ session('error') }}
</div>
@endif
<form method="POST" action="{{ route('password.forgot') }}" class="space-y-5" data-loading-message="Mengirim link reset password...">
@csrf
<div>
<label for="username" class="block text-sm font-medium text-slate-300 mb-2">LDAP Username</label>
<input id="username" name="username" type="text" value="{{ old('username') }}" required autofocus
placeholder="sAMAccountName, e.g. arcmon"
class="w-full rounded-lg bg-slate-800 border border-slate-700 px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500">
@error('username')<p class="text-red-400 text-xs mt-1">{{ $message }}</p>@enderror
</div>
<button type="submit"
class="w-full rounded-lg bg-violet-700 hover:bg-violet-600 text-white font-semibold py-3 transition">
Send Reset Link
</button>
</form>
</div>
<aside class="bg-slate-900 border border-slate-800 rounded-2xl p-5 notes-panel">
<h2 class="text-sm font-semibold text-white mb-3">Catatan</h2>
<dl class="space-y-2 text-xs text-slate-400">
<div>
<dt class="font-medium text-violet-400 mb-0.5">Email pengirim</dt>
<dd>Email dikirim dari <span class="text-slate-300">{{ config('mail.from.address') }}</span>. Link berlaku 60 menit.</dd>
</div>
<div>
<dt class="font-medium text-amber-400 mb-0.5">Email di AD</dt>
<dd>Pastikan atribut mail terisi di Active Directory. Tanpa email terdaftar, link reset tidak dapat dikirim.</dd>
</div>
</dl>
</aside>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('js/pwa-login-shell.js') }}" defer></script>
@endpush