Compare commits

3 Commits

Author SHA1 Message Date
87471e033e Require email for registration. 2025-07-22 07:27:02 +02:00
c03b27b960 Fix user menu in dark mode. 2025-07-22 07:27:02 +02:00
Jens Luedicke
9b9553ff8b Merge pull request #19 from nullmedium/nullmedium-patch-1
Delete .github/workflows directory
2025-07-21 16:27:07 +02:00
4 changed files with 19 additions and 7 deletions

4
app.py
View File

@@ -638,6 +638,8 @@ def register():
error = None
if not username:
error = 'Username is required'
elif not email:
error = 'Email is required'
elif not password:
error = 'Password is required'
elif password != confirm_password:
@@ -799,6 +801,8 @@ def register_freelancer():
error = None
if not username:
error = 'Username is required'
elif not email:
error = 'Email is required'
elif not password:
error = 'Password is required'
elif password != confirm_password:

View File

@@ -656,6 +656,7 @@
background-color: var(--dropdown-bg) !important;
border: 1px solid var(--border-primary);
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 {
@@ -685,6 +686,13 @@
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 */
@media (max-width: 1024px) {
[data-theme="dark"] .sidebar.active .user-dropdown-modal.active,

View File

@@ -178,9 +178,9 @@
<div class="form-group input-icon">
<i>📧</i>
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com (optional)">
<label for="email">Email Address (Optional)</label>
<small class="form-text text-muted">Recommended for account recovery and notifications</small>
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com" required>
<label for="email">Email Address</label>
<small class="form-text text-muted">Required for account verification and recovery</small>
</div>
<div class="form-group input-icon">
@@ -234,7 +234,7 @@
</div>
<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>
</form>
</div>

View File

@@ -47,9 +47,9 @@
<div class="form-group input-icon">
<i>📧</i>
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com (optional)">
<label for="email">Email Address (Optional)</label>
<small class="form-text text-muted">Recommended for account recovery</small>
<input type="email" id="email" name="email" class="form-control" placeholder="your@email.com" required>
<label for="email">Email Address</label>
<small class="form-text text-muted">Required for account verification and recovery</small>
</div>
<div class="form-group input-icon">