Improved login for the extension

This commit is contained in:
Eduard Urbach 2017-06-25 18:09:44 +02:00
parent 31638f5711
commit c1d84aef2f

View File

@ -14,7 +14,7 @@ func Get(ctx *aero.Context) string {
user := utils.GetUser(ctx)
if user == nil {
return ctx.Error(http.StatusUnauthorized, "Not logged in", nil)
return ctx.HTML(components.Login())
}
animeList := user.AnimeList()