puavo_authentication 0.0.4 → 0.0.6

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.
@@ -6,7 +6,7 @@ class SessionsController < ApplicationController
6
6
  end
7
7
 
8
8
  def create
9
- if user = User.authenticate( params[:user][:login], params[:user][:password] ) # REST/OAuth?
9
+ if user = User.authenticate( params[:user][:uid], params[:user][:password] ) # REST/OAuth?
10
10
  flash[:notice] = t('flash.session.login_successful')
11
11
  session[:dn] = user.dn
12
12
  session[:password_plaintext] = params[:user][:password]
@@ -1,8 +1,8 @@
1
1
  <% form_tag sessions_path do %>
2
2
  <table>
3
3
  <tr>
4
- <td><%= label :user, :login %></td>
5
- <td><%= text_field :user, :login %></td>
4
+ <td><%= label :user, :uid %></td>
5
+ <td><%= text_field :user, :uid %></td>
6
6
  </tr>
7
7
  <tr>
8
8
  <td><%= label :user, :password %></td>
@@ -40,7 +40,7 @@ module PuavoAuthentication
40
40
  else
41
41
  unless current_user
42
42
  store_location
43
- flash[:notice] = "You must be logged in"
43
+ flash[:notice] = t('must_be_logged_in')
44
44
  redirect_to login_path
45
45
  return false
46
46
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puavo_authentication
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jouni Korhonen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-21 00:00:00 +03:00
18
+ date: 2010-10-25 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies: []
21
21