auto_auth 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e35be5a61d4d181863f37c1fcdd055428c113a47
4
- data.tar.gz: ab2b7f4fc1f8aa1a0d7516485cb4c85448c54dfa
3
+ metadata.gz: 6bfa0bcc89c4448cd028ac2564b89b72b413b242
4
+ data.tar.gz: fb25d568b6cd7b87babec4c7124389013ad36b99
5
5
  SHA512:
6
- metadata.gz: ebec47215fe6608392c8e7aea468986afff70116da6159162a0b6a0f0513bc9144caf4c99b6a072893abeec6580d599d2a1816c9e4426f91981c8a2061e2b18e
7
- data.tar.gz: e75c6b28666af1dd82a2539299aac2274ecb123b3f9a903b031ffff51bc243dd106977e1a8d0f72387ca963071671e20b7f847d08a4a206c12d73526b918e6b7
6
+ metadata.gz: 8d683c34bc9d932bd835b2b95c17fde134bc571a1b8e5f235e101f06d8d5609d1c8c151d710dd312c985561f37aa75bb86b07558438dc9a2a87a690ac36c6186
7
+ data.tar.gz: 641fb358b6aea03682303fdde7648d5329d243abff4d17293a96f57228b6c60485a491e9d5d22fab938cfe51457ab382ee4de50f1836a02a3dc5a3b4c8e4f8bc
@@ -1,3 +1,3 @@
1
1
  module AutoAuth
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -30,7 +30,7 @@ class RegistrationsController < ApplicationController
30
30
  private
31
31
 
32
32
  def setup_<%= identity_model %>
33
- <%= identity_model_class %>.verify_signature!(TokenVerification::EMAIL_CONFIRMATION, params.require(:email_confirmation_token)) do |record, expires_at|
33
+ <%= identity_model_class %>.verify_signature!(Identity::EMAIL_CONFIRMATION_KEY, params.require(:email_confirmation_token)) do |record, expires_at|
34
34
  if expires_at < Time.current
35
35
  redirect_to(root_path, alert: t(:'auto_auth.registrations.expired'))
36
36
  else
@@ -1,6 +1,6 @@
1
1
  class SessionsController < ApplicationController
2
2
 
3
- skip_before_action :authenticate!, only: :new
3
+ skip_before_action :authenticate!, only: [:new, :create]
4
4
  before_action :redirect_authenticated, only: [:new]
5
5
 
6
6
  def new
@@ -17,7 +17,7 @@ class <%= identity_model_class %> < ActiveRecord::Base
17
17
  validates_confirmation_of :password, if: :password_required?
18
18
  validates_length_of :password, within: 8..128, allow_blank: true
19
19
 
20
- before_save :downcase_email, -> { |ident| ident.email.downcase! }
20
+ before_save { |ident| ident.email.downcase! }
21
21
 
22
22
  def update_email(new_email)
23
23
  self.email = new_email
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Schneider
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails