From 655a406b0c8827a81d4a355bf29c397f731037e8 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Wed, 24 Aug 2022 18:01:23 +0200 Subject: [PATCH] feat: verify password function exposed via api --- services/accounts/accounts.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/accounts/accounts.go b/services/accounts/accounts.go index f939a0bb2..c5c0ec02c 100644 --- a/services/accounts/accounts.go +++ b/services/accounts/accounts.go @@ -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 +}