merb-auth-more 1.0.6.1 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,11 +16,12 @@ class Merb::Authentication
16
16
  class Form < Base
17
17
 
18
18
  def run!
19
- if request.params[login_param] && request.params[password_param]
20
- user = user_class.authenticate(request.params[login_param], request.params[password_param])
19
+ if (login = request.params[login_param]) && (password = request.params[password_param])
20
+ user = user_class.authenticate(login, password)
21
21
  if !user
22
- request.session.authentication.errors.clear!
23
- request.session.authentication.errors.add(login_param, strategy_error_message)
22
+ errors = request.session.authentication.errors
23
+ errors.clear!
24
+ errors.add(login_param, strategy_error_message)
24
25
  end
25
26
  user
26
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-auth-more
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6.1
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-16 00:00:00 -08:00
12
+ date: 2008-12-28 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.6.1
23
+ version: 1.0.7
24
24
  version:
25
25
  description: Additional resources for use with the merb-auth-core authentication framework.
26
26
  email: has.sox@gmail.com