mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
- Updated `AuthController.cs` to include token in `CreateSession` and improved validation for username and email. - Refactored paste creation logic from `Program.cs` to a new `PasteController.cs`. - Added email validation method in `HelperService.cs`. - Introduced `CompressionService.cs` for handling string compression and decompression. - Improved user experience with autocomplete and spellcheck in HTML forms. - Enhanced date display in `archive.js` and refactored date formatting in `dash.js`. - Updated API endpoints in `login.js` and `register.js` to reflect changes.
45 lines
2.0 KiB
HTML
45 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Login - Sharpbin</title>
|
|
<link rel="preload" href="css/style.css" as="style">
|
|
<link rel="preload" href="css/auth.css" as="style">
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<link rel="stylesheet" href="css/auth.css">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+Mono:wght@100..900&display=swap" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="auth-container">
|
|
<div class="auth-form-container">
|
|
<h1 class="auth-title">Login to Sharpbin</h1>
|
|
<div id="error-message" class="error-message"></div>
|
|
<form id="login-form" class="auth-form">
|
|
<div class="form-group">
|
|
<label for="username">Username or Email</label>
|
|
<input type="text" id="username" name="username" placeholder="Enter your username or email" required autocomplete="off" spellcheck="false">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" placeholder="Enter your password" required autocomplete="off" spellcheck="false">
|
|
</div>
|
|
<button type="submit" class="auth-button">Login</button>
|
|
</form> <div class="auth-links">
|
|
<p>Don't have an account? <a href="register.html">Register</a></p>
|
|
<p>Forgot your password? <a href="reset-password.html">Reset Password</a></p>
|
|
<p><a href="/">Back to Home</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="js/login.js"></script>
|
|
<script src="js/main.js"></script>
|
|
</body>
|
|
|
|
</html>
|