mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: sentry logging without user authentication [ci-skip]
This commit is contained in:
parent
0c51d8682b
commit
41311a8b06
@ -21,6 +21,9 @@ func (c *PrincipalContainer) GetPrincipal() *models.User {
|
||||
}
|
||||
|
||||
func (c *PrincipalContainer) GetPrincipalIdentity() string {
|
||||
if c.principal == nil {
|
||||
return ""
|
||||
}
|
||||
return c.principal.Identity()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user