salted_login_generator 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/templates/README CHANGED
@@ -132,6 +132,7 @@ You can find more help at http://wiki.rubyonrails.com/rails/show/SaltedLoginGene
132
132
 
133
133
  == Changelog
134
134
 
135
+ 1.0.7 Fixed bad bug with missing attr_accessor :new_password in user class
135
136
  1.0.6 Proper delete support and bug fixes
136
137
  1.0.5 Lots of fixes and changes (see rubyforge.org/salted-login)
137
138
  1.0.0 First gem release
@@ -20,6 +20,7 @@ class <%= class_name %>Controller < ApplicationController
20
20
  @<%= singular_name %> = <%= class_name %>.new(@params['<%= singular_name %>'])
21
21
  begin
22
22
  <%= class_name %>.transaction(@<%= singular_name %>) do
23
+ @<%= singular_name %>.new_password = true
23
24
  if @<%= singular_name %>.save
24
25
  key = @<%= singular_name %>.generate_security_token
25
26
  url = url_for(:action => 'welcome')
data/templates/user.rb CHANGED
@@ -20,10 +20,12 @@ ActiveRecord::Validations::ClassMethods.module_eval {
20
20
 
21
21
  # this model expects a certain database layout and its based on the name/login pattern.
22
22
  class <%= class_name %> < ActiveRecord::Base
23
+
24
+ attr_accessor :new_password
23
25
 
24
26
  def initialize(attributes = nil)
25
27
  super
26
- @new_password = true
28
+ @new_password = false
27
29
  end
28
30
 
29
31
  def self.authenticate(login, pass)
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: salted_login_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.6
7
- date: 2005-05-04
6
+ version: 1.0.7
7
+ date: 2005-05-08
8
8
  summary: "[Rails] Login generator with salted passwords."
9
9
  require_paths:
10
10
  - "."