Compare commits
3 Commits
nullmedium
...
87471e033e
| Author | SHA1 | Date | |
|---|---|---|---|
| 87471e033e | |||
| c03b27b960 | |||
|
|
9b9553ff8b |
4
app.py
4
app.py
@@ -638,6 +638,8 @@ def register():
|
|||||||
error = None
|
error = None
|
||||||
if not username:
|
if not username:
|
||||||
error = 'Username is required'
|
error = 'Username is required'
|
||||||
|
elif not email:
|
||||||
|
error = 'Email is required'
|
||||||
elif not password:
|
elif not password:
|
||||||
error = 'Password is required'
|
error = 'Password is required'
|
||||||
elif password != confirm_password:
|
elif password != confirm_password:
|
||||||
@@ -799,6 +801,8 @@ def register_freelancer():
|
|||||||
error = None
|
error = None
|
||||||
if not username:
|
if not username:
|
||||||
error = 'Username is required'
|
error = 'Username is required'
|
||||||
|
elif not email:
|
||||||
|
error = 'Email is required'
|
||||||
elif not password:
|
elif not password:
|
||||||
error = 'Password is required'
|
error = 'Password is required'
|
||||||
elif password != confirm_password:
|
elif password != confirm_password:
|
||||||
|
|||||||
@@ -656,6 +656,7 @@
|
|||||||
background-color: var(--dropdown-bg) !important;
|
background-color: var(--dropdown-bg) !important;
|
||||||
border: 1px solid var(--border-primary);
|
border: 1px solid var(--border-primary);
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
|
||||||
|
z-index: 1000 !important; /* Ensure dropdown is above other elements */
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="dark"] .user-dropdown-header {
|
[data-theme="dark"] .user-dropdown-header {
|
||||||
@@ -685,6 +686,13 @@
|
|||||||
border-top: 1px solid var(--border-primary);
|
border-top: 1px solid var(--border-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fix dropdown toggle interaction in dark mode */
|
||||||
|
[data-theme="dark"] .user-dropdown-toggle {
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
/* Override mobile-specific white background */
|
/* Override mobile-specific white background */
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
[data-theme="dark"] .sidebar.active .user-dropdown-modal.active,
|
[data-theme="dark"] .sidebar.active .user-dropdown-modal.active,
|
||||||
|
|||||||
@@ -178,9 +178,9 @@
|
|||||||
|
|
||||||
<div class="form-group input-icon">
|
<div class="form-group input-icon">
|
||||||
<i>📧</i>
|
<i>📧</i>
|
||||||
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com (optional)">
|
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com" required>
|
||||||
<label for="email">Email Address (Optional)</label>
|
<label for="email">Email Address</label>
|
||||||
<small class="form-text text-muted">Recommended for account recovery and notifications</small>
|
<small class="form-text text-muted">Required for account verification and recovery</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group input-icon">
|
<div class="form-group input-icon">
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="verification-notice">
|
<div class="verification-notice">
|
||||||
<p><i class="ti ti-bulb"></i> You can register without an email, but we recommend adding one for account recovery.</p>
|
<p><i class="ti ti-bulb"></i> A valid email address is required for registration. You will receive a verification email after signup.</p>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -47,9 +47,9 @@
|
|||||||
|
|
||||||
<div class="form-group input-icon">
|
<div class="form-group input-icon">
|
||||||
<i>📧</i>
|
<i>📧</i>
|
||||||
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com (optional)">
|
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com" required>
|
||||||
<label for="email">Email Address (Optional)</label>
|
<label for="email">Email Address</label>
|
||||||
<small class="form-text text-muted">Recommended for account recovery</small>
|
<small class="form-text text-muted">Required for account verification and recovery</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group input-icon">
|
<div class="form-group input-icon">
|
||||||
|
|||||||
Reference in New Issue
Block a user