• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class MembershipPasswordController

Inheritance
System.Object
MembershipPasswordController
Namespace: DotNetNuke.Entities.Users.Membership
Assembly: DotNetNuke.dll
Syntax
public class MembershipPasswordController : object

Methods

| Improve this Doc View Source

FoundBannedPassword(String)

Checks if user entered password is on the list of banned passwords combines host level list with current site level list.

Declaration
public bool FoundBannedPassword(string inputString)
Parameters
Type Name Description
System.String inputString

user entered password.

Returns
Type Description
System.Boolean

true if password found, false otherwise.

| Improve this Doc View Source

GetPasswordHistory(Int32, Int32)

returns the password history of the supplied user.

Declaration
public List<PasswordHistory> GetPasswordHistory(int userId, int portalId)
Parameters
Type Name Description
System.Int32 userId
System.Int32 portalId

portalid - futureproofing against any setting become site level.

Returns
Type Description
List<PasswordHistory>

list of PasswordHistory objects.

| Improve this Doc View Source

GetPasswordHistory(Int32)

returns the password history of the supplied user.

Declaration
public List<PasswordHistory> GetPasswordHistory(int userId)
Parameters
Type Name Description
System.Int32 userId
Returns
Type Description
List<PasswordHistory>

list of PasswordHistory objects.

| Improve this Doc View Source

IsPasswordInHistory(Int32, Int32, String, Boolean)

checks to see if the password is in history and adds it if it is not.

Declaration
public bool IsPasswordInHistory(int userId, int portalId, string newPassword, bool autoAdd)
Parameters
Type Name Description
System.Int32 userId
System.Int32 portalId

portalid - futureproofing against any setting become site level.

System.String newPassword

users new password suggestion.

System.Boolean autoAdd

If set true then add the password into history if its not used yet.

Returns
Type Description
System.Boolean

true if password has not been used in users history, false otherwise.

| Improve this Doc View Source

IsPasswordInHistory(Int32, Int32, String)

checks to see if the password is in history and adds it if it is not.

Declaration
public bool IsPasswordInHistory(int userId, int portalId, string newPassword)
Parameters
Type Name Description
System.Int32 userId
System.Int32 portalId

portalid - futureproofing against any setting become site level.

System.String newPassword

users new password suggestion.

Returns
Type Description
System.Boolean

true if password has not been used in users history, false otherwise.

| Improve this Doc View Source

IsPasswordPreviouslyUsed(Int32, String)

checks if the new password matches a previously used password when hashed with the same salt.

Declaration
public bool IsPasswordPreviouslyUsed(int userId, string password)
Parameters
Type Name Description
System.Int32 userId
System.String password

users entered new password.

Returns
Type Description
System.Boolean

true if previously used, false otherwise.

| Improve this Doc View Source

IsValidToken(Int32, Guid)

checks if the password reset token being used is valid i.e. has not been used before and is within the the expiration period.

Declaration
public bool IsValidToken(int userId, Guid resetToken)
Parameters
Type Name Description
System.Int32 userId

user attempting to reset their password.

Guid resetToken

reset token supplied via email link.

Returns
Type Description
System.Boolean

true if value matches (so has not been used before) and is within expiration window.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS