mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 06:40:29 +08:00
Allow default admin user login ragflow user of go server (#13715)
### What problem does this PR solve? 1. Allow admin@ragflow.io login go ragflow server 2. Fix go server start error. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -133,7 +133,7 @@ func (h *Handler) Login(c *gin.Context) {
|
||||
|
||||
// Use userService.LoginByEmail with adminLogin=true
|
||||
// This allows default admin account to login admin system
|
||||
user, code, err := h.userService.LoginByEmail(&req, true)
|
||||
user, code, err := h.userService.LoginByEmail(&req)
|
||||
if err != nil {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"code": code,
|
||||
|
||||
Reference in New Issue
Block a user