Improved login for the extension
This commit is contained in:
parent
31638f5711
commit
c1d84aef2f
@ -14,7 +14,7 @@ func Get(ctx *aero.Context) string {
|
|||||||
user := utils.GetUser(ctx)
|
user := utils.GetUser(ctx)
|
||||||
|
|
||||||
if user == nil {
|
if user == nil {
|
||||||
return ctx.Error(http.StatusUnauthorized, "Not logged in", nil)
|
return ctx.HTML(components.Login())
|
||||||
}
|
}
|
||||||
|
|
||||||
animeList := user.AnimeList()
|
animeList := user.AnimeList()
|
||||||
|
Loading…
Reference in New Issue
Block a user