View Source ArkeAuth.Core.User (arke_auth v0.3.4)
Documentation for User
.
Summary
Functions
@spec check_password(user :: ArkeAuth.Core.Unit.t(), pwd :: String.t()) :: {:ok, ArkeAuth.Core.Unit.t()} | Arke.Utils.ErrorGenerator.t()
Check if the given password is right
Parameters
- user => %Arke.Core.Unit{} => user struct
- pwd => string => password to check
Return
{:ok, %Arke.Core.Unit{}}
@spec update_password(user :: ArkeAuth.Core.Unit.t(), new_pwd :: String.t()) :: {:ok, ArkeAuth.Core.Unit.t()} | Arke.Utils.ErrorGenerator.t()
Update the user password
Parameters
- user => %Arke.Core.Unit{} => user struct
- new_pwd => string => password to check
Return
{:ok, %Arke.Core.Unit{}}