We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b175b74 commit fed4248Copy full SHA for fed4248
3 files changed
internal/api/admin/admin.go
@@ -52,6 +52,10 @@ func (o *Api) AdminLogin(c *gin.Context) {
52
apiresp.GinError(c, err)
53
return
54
}
55
+ if req.Version == "" {
56
+ apiresp.GinError(c, errs.New("openim-admin-front version too old, please use new version").Wrap())
57
+ return
58
+ }
59
loginResp, err := o.adminClient.Login(c, req)
60
if err != nil {
61
0 commit comments