Cancel My Account action in kentico mvc

web dev asked on May 14, 2020 19:30

Hello kentuco dev i create a Register Page worked fine but I have another page for user can cancel his accounts in kentico mvc any idea thanks

Recent Answers


David te Kloese answered on May 15, 2020 10:23

If you created an actual Kentico user I'd say update it's enabled status!? As you probably don't want to delete the actual user.

https://docs.kentico.com/api12/configuration/users#Users-Updatinganexistinguser

0 votesVote for this answer Mark as a Correct answer

web dev answered on May 22, 2020 18:21

this solution didnt work for me still get the same errorUser name email+9944@gmail.com is invalid, can only contain letters or digits.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on May 22, 2020 19:18

Hi, this seems totally unrelated to your original question.

Secondly the error shows you want's wrong. Only letters or digits are allowed for use as User Name. You can update the "CMSUserValidationRegEx"-key in your web.config to allow more symbols:

Using email addresses as user names

If you want to use a customer's email address as their user name for signing-in, you need to solve different sets of allowed characters. For example, email addresses are by default valid with plus symbols (+), but user names cannot contain this character. You can adjust the behavior with the CMSUserValidationRegEx web.config key.

alternatively you could not use the email as user name.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.