feat: verify password function exposed via api
This commit is contained in:
parent
4814de562f
commit
655a406b0c
|
@ -305,3 +305,11 @@ func (api *API) generateAccount(
|
||||||
|
|
||||||
return api.SaveAccounts(ctx, []*accounts.Account{acc})
|
return api.SaveAccounts(ctx, []*accounts.Account{acc})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (api *API) VerifyPassword(password string) bool {
|
||||||
|
err := api.verifyPassword(password)
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue