mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
[server] Trim space
This commit is contained in:
parent
25596854d3
commit
831e78f510
@ -115,7 +115,7 @@ func (h *AdminHandler) GetUsers(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *AdminHandler) GetUser(c *gin.Context) {
|
||||
e := c.Query("email")
|
||||
e := strings.ToLower(strings.TrimSpace(c.Query("email")))
|
||||
if e == "" {
|
||||
id, err := strconv.ParseInt(c.Query("id"), 10, 64)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user