1
0
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:
Ferdinand Mütsch 2023-01-08 15:52:21 +01:00
parent 0c51d8682b
commit 41311a8b06

View File

@ -21,6 +21,9 @@ func (c *PrincipalContainer) GetPrincipal() *models.User {
}
func (c *PrincipalContainer) GetPrincipalIdentity() string {
if c.principal == nil {
return ""
}
return c.principal.Identity()
}