Browse files

Improve settings-page UX

  • Loading branch information...
1 parent 5d3789b commit fd2cc0314933469345a8233133f27a67d274be98 @amalloy amalloy committed Oct 9, 2011
Showing with 5 additions and 2 deletions.
  1. +3 −1 resources/public/css/style.css
  2. +2 −1 src/foreclojure/settings.clj
View
4 resources/public/css/style.css
@@ -313,7 +313,9 @@ div#main {
}
div.message #flash-text {}
-div.message #error-text {}
+div.message #error-text {
+ color: red;
+}
div#prob-title {
font-size: 15pt;
View
3 src/foreclojure/settings.clj
@@ -80,7 +80,8 @@
"New password must be at least seven characters long",
(= new-pwd repeat-pwd)
"New password was not entered identically twice"
- (.checkPassword encryptor old-pwd pwd)
+ (or (empty? new-pwd)
+ (.checkPassword encryptor old-pwd pwd))
"Current password incorrect"
(not (empty? email))
"Please enter a valid email address"]

0 comments on commit fd2cc03

Please sign in to comment.