Полный продакшен-рефактор fix25: split peer/admin, удаление legacy, шифрование secret, auth_id, новые API/роуты и зачистка subscription

This commit is contained in:
2026-05-09 00:27:45 +05:00
parent e60594e09e
commit d73bab99ec
34 changed files with 930 additions and 1673 deletions
+9
View File
@@ -28,3 +28,12 @@ func AdminChangePassword(c *gin.Context) {
vo.Success(nil, c)
}
func AdminSecurity(c *gin.Context) {
info, err := service.GetAdminInfo(c)
if err != nil {
vo.Fail(err.Error(), c)
return
}
vo.Success(gin.H{"forcePasswordChange": info.ForcePasswordChange}, c)
}