mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
fix authentication transaction; record created identities (#10)
This commit is contained in:
@ -18,6 +18,7 @@ func ZrokAuthenticate(token string) (*rest_model_zrok.Principal, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer func() { _ = tx.Rollback() }()
|
||||
if a, err := str.FindAccountWithToken(token, tx); err == nil {
|
||||
principal := rest_model_zrok.Principal{
|
||||
ID: int64(a.Id),
|
||||
|
Reference in New Issue
Block a user