refactor: SessionUser -> SessionUsername

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-07-18 07:15:22 +08:00
committed by Yang Luo
parent 59602a1325
commit d83b86df37
6 changed files with 16 additions and 16 deletions

View File

@ -24,7 +24,7 @@ import (
func (c *ApiController) getCurrentUser() *object.User {
var user *object.User
userId := c.GetSessionUser()
userId := c.GetSessionUsername()
if userId == "" {
user = nil
} else {