Password minimum length requirement implemented

main
Inga 🏳‍🌈 15 years ago
parent 221c9a319e
commit 5cbcdd914e
  1. 1
      Common/dataobjects/Account.cs

@ -133,6 +133,7 @@ namespace FLocal.Common.dataobjects {
} }
public void updatePassword(string newPassword) { public void updatePassword(string newPassword) {
if(newPassword.Length < 5) throw new FLocalException("Password is too short");
ChangeSetUtil.ApplyChanges(new AbstractChange[] { ChangeSetUtil.ApplyChanges(new AbstractChange[] {
new UpdateChange( new UpdateChange(
TableSpec.instance, TableSpec.instance,

Loading…
Cancel
Save