mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
fix: safe registration_open default + TOTP constant-time comparison (T-199, T-201)
This commit is contained in:
@@ -793,7 +793,7 @@ func isRequire2FAEnabled(database *db.DB) (bool, error) {
|
||||
}
|
||||
|
||||
func isRegistrationOpen(database *db.DB) (bool, error) {
|
||||
return getBooleanSetting(database, "registration_open", false)
|
||||
return getBooleanSetting(database, "registration_open", true)
|
||||
}
|
||||
|
||||
func getBooleanSetting(database *db.DB, key string, defaultValue bool) (bool, error) {
|
||||
|
||||
Reference in New Issue
Block a user