Phase 4 — Admin Panel: - Admin dashboard with user/fave/pending-request counts - User management: create with temp password, reset password, enable/disable accounts (prevents self-disable) - Tag management: rename and delete tags - Signup request management: approve (creates user with must-reset-password) and reject pending requests - Site settings: site name, description, signup mode (open/requests/closed) - All admin routes require both login and admin role - SignupRequest model and full store (create, list pending, approve with user creation, reject) - SetMustResetPassword method on UserStore for admin password resets Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
259 B
Go
15 lines
259 B
Go
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
package model
|
|
|
|
import "time"
|
|
|
|
type SignupRequest struct {
|
|
ID int64
|
|
Username string
|
|
PasswordHash string
|
|
Status string
|
|
CreatedAt time.Time
|
|
ReviewedAt *time.Time
|
|
ReviewedBy int64
|
|
}
|