mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-06-28 06:49:36 +00:00
Automatically setup Metadata Type Settings after login
This commit is contained in:
parent
0c5cd9152d
commit
476eabf8fa
1 changed files with 6 additions and 0 deletions
|
@ -129,6 +129,12 @@ func (c *Client) Login(ctx context.Context) error {
|
||||||
c.userPublicKey = user.GPGKey.ArmoredKey
|
c.userPublicKey = user.GPGKey.ArmoredKey
|
||||||
c.userID = user.ID
|
c.userID = user.ID
|
||||||
|
|
||||||
|
// after Login, fetch MetadataTypeSettings to finish the Client Setup
|
||||||
|
c.setMetadataTypeSettings(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Setup Metadata Type Settings: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue