fix: Made empty user not crash the Discord module
This commit is contained in:
parent
55441eaf85
commit
202b175a4a
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ func (m *Module) Init(mm *modweb.ModuleManager) {
|
|||
}
|
||||
|
||||
user := m.Callback(me)
|
||||
user.Save(session)
|
||||
if user != nil {
|
||||
user.Save(session)
|
||||
}
|
||||
|
||||
return ctx.Redirect("/")
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue