Skip to content

Commit

Permalink
Replace hardcoded constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dennishendriksen committed Aug 12, 2015
1 parent 4e96559 commit c3869e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static com.google.common.base.Preconditions.checkNotNull;
import static org.molgenis.security.account.AccountController.URI;
import static org.molgenis.security.user.UserAccountService.MIN_PASSWORD_LENGTH;

import java.io.IOException;
import java.util.Collections;
Expand Down Expand Up @@ -86,7 +87,7 @@ public ModelAndView getRegisterForm()
{
ModelAndView model = new ModelAndView("register-modal");
model.addObject("countries", CountryCodes.get());
model.addObject("min_password_length", 6); // FIXME do not hardcode
model.addObject("min_password_length", MIN_PASSWORD_LENGTH);
return model;
}

Expand Down

0 comments on commit c3869e1

Please sign in to comment.