Improve panic message.

This commit is contained in:
Yang Luo 2021-04-29 13:50:29 +08:00
parent 93564e8389
commit cfe1eb9d50
2 changed files with 8 additions and 8 deletions

View File

@ -220,7 +220,7 @@ func (c *ApiController) Login() {
//}
}
} else {
panic("unknown authentication type (not password or provider)")
panic("unknown authentication type (not password or provider), form = " + util.StructToJson(form))
}
c.Data["json"] = resp

View File

@ -3,7 +3,7 @@
{
"Home": "主页",
"Organizations": "组织",
"Providers": "第三方",
"Providers": "提供商",
"Users": "用户",
"Applications": "应用",
"Save": "保存",
@ -13,8 +13,8 @@
"Delete": "删除",
"Organization": "组织",
"Created time": "创建时间",
"Name": "用户名",
"Display name": "姓名",
"Name": "",
"Display name": "显示名称",
"Avatar": "头像",
"URL": "链接",
"Preview": "预览",
@ -75,13 +75,13 @@
},
"provider":
{
"Name": "用户名",
"Display name": "姓名",
"Name": "",
"Display name": "显示名称",
"Type": "类型",
"Client ID": "Client ID",
"Client secret": "Client secret",
"Provider URL": "第三方URL",
"Edit Provider": "修改第三方"
"Provider URL": "提供商URL",
"Edit Provider": "修改提供商"
},
"user":
{