mirror of
https://github.com/myronblair/epic-download
synced 2026-06-30 17:51:00 -05:00
visual_edit_1773688853684
This commit is contained in:
@@ -16,7 +16,7 @@ const AdminLogin = () => {
|
|||||||
const handleLogin = async (e) => {
|
const handleLogin = async (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await authAPI.login(email, password);
|
const response = await authAPI.login(email, password);
|
||||||
localStorage.setItem('auth_token', response.access_token);
|
localStorage.setItem('auth_token', response.access_token);
|
||||||
@@ -57,8 +57,8 @@ const AdminLogin = () => {
|
|||||||
value={email}
|
value={email}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
className="pl-10"
|
className="pl-10"
|
||||||
required
|
required />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
@@ -71,25 +71,25 @@ const AdminLogin = () => {
|
|||||||
value={password}
|
value={password}
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
className="pl-10"
|
className="pl-10"
|
||||||
required
|
required />
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Button type="submit" className="w-full bg-cyan-600 hover:bg-cyan-700" size="lg" disabled={loading}>
|
<Button type="submit" className="w-full bg-cyan-600 hover:bg-cyan-700" size="lg" disabled={loading}>
|
||||||
{loading ? 'Signing in...' : 'Sign In'}
|
{loading ? 'Signing in...' : 'Sign In'}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
<div className="mt-6 p-4 bg-cyan-50 rounded-lg border border-cyan-200">
|
<div className="">
|
||||||
<p className="text-sm text-cyan-800">
|
<p className="text-sm text-cyan-800">
|
||||||
<strong>Demo Credentials:</strong><br />
|
<strong>Demo Credentials:</strong><br />
|
||||||
Email: admin@epictravel.com<br />
|
Email: admin@epictravel.co<br />
|
||||||
Password: Joker1974!!!
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>);
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AdminLogin;
|
export default AdminLogin;
|
||||||
Reference in New Issue
Block a user