fix: linting
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
dfa6f82dda
commit
f52a083849
@ -96,6 +96,7 @@ func quickSetup(cmd *cobra.Command) {
|
|||||||
defer db.Close()
|
defer db.Close()
|
||||||
|
|
||||||
set := &settings.Settings{
|
set := &settings.Settings{
|
||||||
|
Key: generateRandomBytes(64), // 256 bit
|
||||||
BaseURL: "",
|
BaseURL: "",
|
||||||
Signup: false,
|
Signup: false,
|
||||||
AuthMethod: auth.MethodJSONAuth,
|
AuthMethod: auth.MethodJSONAuth,
|
||||||
|
|||||||
@ -68,6 +68,9 @@ func withUser(fn handleFunc) handleFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
d.user, err = d.store.Users.Get(tk.User.ID)
|
d.user, err = d.store.Users.Get(tk.User.ID)
|
||||||
|
if err != nil {
|
||||||
|
return http.StatusInternalServerError, err
|
||||||
|
}
|
||||||
return fn(w, r, d)
|
return fn(w, r, d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user