Verify user invite token (#14491)

* Added functionality to verify user invite tokens and create the initial password

* Add response types

* Fail ValidateCredentialsAsync when user is not approved

* Enable user as part of initial password creating using validation token

* Adds documentation to badrequest and changed nocontent to ok, to align with other APIs

* Fixed tests and added a new one

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
This commit is contained in:
Bjarke Berg
2023-07-05 12:42:52 +02:00
committed by GitHub
parent 8bccab3b60
commit 59df7439db
12 changed files with 185 additions and 4 deletions

View File

@@ -20,4 +20,6 @@ public interface ICoreBackOfficeUserManager
Task<Attempt<UserUnlockResult, UserOperationStatus>> UnlockUser(IUser user);
Task<Attempt<ICollection<IIdentityUserLogin>, UserOperationStatus>> GetLoginsAsync(IUser user);
Task<bool> IsEmailConfirmationTokenValidAsync(IUser user, string token);
}