Skip to content

Implementing configurable password policies#7051

Merged
Piedone merged 6 commits into
devfrom
issue/5380
Jul 28, 2016
Merged

Implementing configurable password policies#7051
Piedone merged 6 commits into
devfrom
issue/5380

Conversation

@Piedone

@Piedone Piedone commented Jul 22, 2016

Copy link
Copy Markdown
Member

Policies include:

  • Minimum password length
  • Password should contain uppercase and/or lowercase characters
  • Password should contain numbers
  • Password should contain special characters

See #5380.

Policies include:
- Minimum password length
- Password should contain uppercase and/or lowercase characters
- Password should contain numbers
- Password should contain special characters
@Piedone Piedone changed the title Implementing configurable password policies, see #5380. Implementing configurable password policies Jul 22, 2016
@Piedone

Piedone commented Jul 22, 2016

Copy link
Copy Markdown
Member Author

@sebastienros @bleroy could you please ask some security expert in Microsoft to validate these changes?

}

[AlwaysAccessible]
public ActionResult ChangeExpiredPassword(string username) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a new way to change the password? Why not use the default action/view? I don't see any real value of testing the validity again here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because if you have to change your password because it expired then you'll get to this screen before logging in. I.e. this password change screen is accessible for anonymous users and the POST method needs to be different. Thus the form's target should be different on this screen, while there is also a hint informing you about your password being expired.

@sebastienros

Copy link
Copy Markdown
Member

Looks good to me security wise.

@Piedone

Piedone commented Jul 22, 2016

Copy link
Copy Markdown
Member Author

Thanks.

set { this.Store(x => x.EnableCustomPasswordPolicy, value); }
}

public bool EnableCustomPasswordLength {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this boolean

@Piedone
Piedone merged commit d32847b into dev Jul 28, 2016
@Piedone
Piedone deleted the issue/5380 branch July 28, 2016 19:59
HermesSbicego-Laser pushed a commit to LaserSrl/Orchard that referenced this pull request Jan 12, 2018
* Implementing configurable password policies, see OrchardCMS#5380.

Policies include:
- Minimum password length
- Password should contain uppercase and/or lowercase characters
- Password should contain numbers
- Password should contain special characters

* Adding missing IMembershipSettings and removing now unneeded MembershipSettings

* Removing hard-coded password length limits

* Removing unnecessary checks when building the model state dictionary

* Simplifying password length policy configuration by removing explicit enable option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants