feat: verify password function exposed via api

This commit is contained in:
Sale Djenic 2022-08-24 18:01:23 +02:00 committed by saledjenic
parent 4814de562f
commit 655a406b0c
1 changed files with 8 additions and 0 deletions

View File

@ -305,3 +305,11 @@ func (api *API) generateAccount(
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
}