Jun 26 - Implement registration function for user to register account
This commit is contained in:
@@ -93,6 +93,29 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Registration Settings -->
|
||||
<div class="card mt-4">
|
||||
<div class="card-header"><h2 class="card-title">👤 User Registration</h2></div>
|
||||
<form method="post" action="{{ url_for('admin_settings.save_registration') }}">
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Allow Self-Registration</label>
|
||||
<select class="form-control" name="registration_enabled">
|
||||
<option value="0" {{ 'selected' if registration.get('registration.enabled') != '1' }}>Disabled (default)</option>
|
||||
<option value="1" {{ 'selected' if registration.get('registration.enabled') == '1' }}>Enabled</option>
|
||||
</select>
|
||||
<small class="text-muted" style="display:block;margin-top:.35rem">
|
||||
When enabled, a "Create Account" link appears on the login page.
|
||||
New accounts are always created with the <strong>User</strong> role.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-primary" type="submit">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function testConnection(type) {
|
||||
var url = type === 'email' ? '/admin/settings/test-email' : '/admin/settings/test-groq';
|
||||
|
||||
Reference in New Issue
Block a user