Пример #1
0
 /// <summary>
 /// Resets the password for the specified user which results in a link being sent by email to the user,
 /// that can visit the link to set a new password. The link is usable only once. If the link has expired,
 /// this endpoint can be invoked again.
 /// </summary>
 /// <remarks>
 /// Note: Following a password reset, the user account is disabled until the password has been successfully changed.
 /// </remarks>
 public Task UserResetPassword(MicUserBasicInfo userInfo, CancellationToken cancelToken = default) =>
 HandleClientRequest <MicUserBasicInfo, MicResponse>(UserResetPasswordUrl(userInfo?.Username), HttpMethod.Post,
                                                     userInfo, hasPayload: true, cancelToken);
Пример #2
0
 /// <summary>
 /// Sends a new confirmation code to the user if the user didn't receive an e-mail or if the link has expired.
 /// </summary>
 public Task AuthResendConfirmationCode(MicUserBasicInfo userInfo, CancellationToken cancelToken = default) =>
 HandleClientRequest <MicUserBasicInfo, MicResponse>(authResendConfirmationCodeUrl, HttpMethod.Post,
                                                     userInfo, hasPayload: true, cancelToken);
Пример #3
0
 /// <summary>
 /// Sends a new confirmation code to the user if the user didn't receive an e-mail or if the link has expired.
 /// </summary>
 public Task AuthResendConfirmationCode(MicUserBasicInfo userInfo, CancellationToken cancelToken = default) =>
 HandleClientRequest <MicUserBasicInfo, MicResponse>(nameof(AuthResendConfirmationCode), userInfo, cancelToken);
Пример #4
0
 /// <summary>
 /// If a user has forgotten the account password, this action can be used to let them reset their password.
 /// The user will get an email message containing a link to set a new password. The link is usable only once.
 /// </summary>
 /// <remarks>
 /// Note: After having invoked this action, it is still possible to login using the correct credentials;
 /// the password is not changed until the user has responded to the email sent by the <c>FORGOT_PASSWORD</c> action.
 /// </remarks>
 public Task AuthForgotPassword(MicUserBasicInfo userInfo, CancellationToken cancelToken = default) =>
 HandleClientRequest <MicUserBasicInfo, MicResponse>(authForgotPasswordUrl, HttpMethod.Post,
                                                     userInfo, hasPayload: true, cancelToken);
Пример #5
0
 /// <summary>
 /// If a user has forgotten the account password, this action can be used to let them reset their password.
 /// The user will get an email message containing a link to set a new password. The link is usable only once.
 /// </summary>
 /// <remarks>
 /// Note: After having invoked this action, it is still possible to login using the correct credentials;
 /// the password is not changed until the user has responded to the email sent by the <c>FORGOT_PASSWORD</c> action.
 /// </remarks>
 public Task AuthForgotPassword(MicUserBasicInfo userInfo, CancellationToken cancelToken = default) =>
 HandleClientRequest <MicUserBasicInfo, MicResponse>(nameof(AuthForgotPassword), userInfo, cancelToken);