diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-03-23 14:57:55 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-03-23 14:57:55 +0000 |
commit | 060f6f74185a182400840015ca9e445074b2d56f (patch) | |
tree | 5245958bf16728c2bf26f626ca1c0e4e085769f9 /lib/mauve/web_interface.rb | |
parent | 9190230cb7a79dbe28d76c12c9d281a0811504c6 (diff) |
Clear flash on login.
Diffstat (limited to 'lib/mauve/web_interface.rb')
-rw-r--r-- | lib/mauve/web_interface.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb index 225cc33..16e7da2 100644 --- a/lib/mauve/web_interface.rb +++ b/lib/mauve/web_interface.rb @@ -165,6 +165,8 @@ EOF if Authentication.authenticate(usr, pwd) session['username'] = usr + # Clear the flash. + flash['error'] = nil redirect next_page else flash['error'] = "Authentication failed." |