Hot answers tagged

11

If you are using Sitecore 8.1 Update-2 or newer then there is a new Security Tools admin page that can be found at /sitecore/admin/SecurityTools.aspx. The Reset User Password wil allow you to reset a users password without first having to generate a random password first. You can find more details about this (and other new admin pages) in this blog post. ...


7

I don't think there is any specific reason. My guess would be that it is just because that is how the ASP.NET Membership API is structured. You cannot change the password without knowing the password (which you can by resetting it). var user = Membership.GetUser(username); var randomPassword = user.ResetPassword(); user.ChangePassword(randomPassword, ...


7

You are right, you granted to much privileges. You don't have to assign any server roles, but you should should assign db_datawriter, dbreader and public role memberships for your user to the web and master databases. You should also assing execute permissions on all the stored procedures for your db user. for the core database, assign the following role ...


4

You can create custom profile properties for the profile in the core database. There you can even use Image field. From your code you can reach it and show on the page. How to create custom property - Link Go to core database and create your custom profile template like /sitecore/templates/System/Security/MyCustomProfile Create your custom profile from ...


3

OOTB Sitecore doesn’t allow email address formats to be stored in the username field but you can use an email address as a user-id for Sitecore login. As you mentioned the Sitecore setting AccountNameValidation sets a regular expression that gets used to validate whether a provided username has a valid format. You need to update it as an easy regex. Second, ...


3

There is, but none of the ways I know of will go via the standard API. The "problem" is; while the standard API will allow you to paginate through the user base, it will not allow you to filter based on profile properties. Which, from your code, is what you need here. This leaves you with a few options. Option 1, the SQL route Turns out, even this ...


1

You can fix it by: Clear Cookies/Browser cache & try to open in new browser Please add these lines to the Sitecore.AntiCsrf.config file as mentioned under 'xml-controls' (website/app_config/include/Sitecore.AntiCsrf.config): Also add below config into Sitecore.AntiCsrf.config <rule name="shell"> <!-- Ingore AntiCSRF completely --> <...


1

The Asp.net Membership API uses a method called ChangePassword, hence the need for the old password. Resetting a password would then look like this: string username = "username"; string password = "newpassword"; MembershipUser mu = Membership.GetUser(username); mu.ChangePassword(mu.ResetPassword(), password); In case you have Sitecore PowerShell ...


Only top voted, non community-wiki answers of a minimum length are eligible