authentasaurus 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELIST +2 -6
- data/TODO +0 -5
- data/app/controllers/areas_controller.rb +1 -1
- data/app/controllers/groups_controller.rb +1 -1
- data/app/controllers/permissions_controller.rb +1 -1
- data/app/controllers/recoveries_controller.rb +1 -1
- data/app/controllers/registrations_controller.rb +1 -1
- data/app/controllers/sessions_controller.rb +2 -2
- data/app/controllers/user_invitations_controller.rb +1 -1
- data/app/controllers/users_controller.rb +1 -1
- data/app/controllers/validations_controller.rb +1 -1
- data/app/models/area.rb +1 -1
- data/app/models/authentasaurus_emailer.rb +6 -6
- data/app/models/group.rb +1 -1
- data/app/models/permission.rb +1 -1
- data/app/models/recovery.rb +1 -1
- data/app/models/user_invitation.rb +1 -1
- data/app/models/validation.rb +1 -1
- data/app/views/authentasaurus_emailer/invitation_mail.html.erb +2 -2
- data/app/views/authentasaurus_emailer/recovery_mail.html.erb +2 -2
- data/app/views/authentasaurus_emailer/validation_mail.html.erb +2 -2
- data/lib/authentasaurus.rb +18 -52
- metadata +2 -136
- data/app/models/authentasaurus_session.rb +0 -3
- data/lib/authentasaurus/ac/acts_as_overrider.rb +0 -48
- data/lib/authentasaurus/ac/controllers/areas_controller.rb +0 -75
- data/lib/authentasaurus/ac/controllers/groups_controller.rb +0 -77
- data/lib/authentasaurus/ac/controllers/permissions_controller.rb +0 -76
- data/lib/authentasaurus/ac/controllers/recoveries_controller.rb +0 -67
- data/lib/authentasaurus/ac/controllers/registrations_controller.rb +0 -40
- data/lib/authentasaurus/ac/controllers/sessions_controller.rb +0 -57
- data/lib/authentasaurus/ac/controllers/user_invitations_controller.rb +0 -45
- data/lib/authentasaurus/ac/controllers/users_controller.rb +0 -75
- data/lib/authentasaurus/ac/controllers/validations_controller.rb +0 -48
- data/lib/authentasaurus/ac/routing.rb +0 -86
- data/lib/authentasaurus/ar/acts_as_authenticatable.rb +0 -107
- data/lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb +0 -35
- data/lib/authentasaurus/ar/acts_as_overrider.rb +0 -49
- data/lib/authentasaurus/ar/authenticatable.rb +0 -64
- data/lib/authentasaurus/ar/migrations.rb +0 -165
- data/lib/authentasaurus/ar/models/recovery.rb +0 -34
- data/lib/authentasaurus/ar/models/session.rb +0 -78
- data/lib/authentasaurus/ar/models/user_invitation.rb +0 -30
- data/lib/authentasaurus/ar/models/validation.rb +0 -27
- data/lib/authentasaurus/arel/acts_as_authenticatable.rb +0 -67
- data/lib/authentasaurus/arel/authenticatable.rb +0 -21
- data/lib/authentasaurus/authorization.rb +0 -344
- data/lib/authentasaurus/configuration.rb +0 -30
- data/lib/authentasaurus/railtie.rb +0 -10
- data/lib/generators/authentasaurus/install/USAGE +0 -5
- data/lib/generators/authentasaurus/install/install_generator.rb +0 -10
- data/lib/generators/authentasaurus/install/templates/authentasaurus_tasks.rake +0 -48
- data/lib/generators/authentasaurus/install/templates/defaults.yml +0 -57
- data/lib/generators/authentasaurus/views/USAGE +0 -13
- data/lib/generators/authentasaurus/views/templates/areas/edit.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/areas/index.html.erb +0 -11
- data/lib/generators/authentasaurus/views/templates/areas/new.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/areas/show.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/invitation_mail.html.erb +0 -4
- data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/recovery_mail.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/validation_mail.html.erb +0 -6
- data/lib/generators/authentasaurus/views/templates/groups/edit.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/groups/index.html.erb +0 -11
- data/lib/generators/authentasaurus/views/templates/groups/new.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/groups/show.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/permissions/edit.html.erb +0 -19
- data/lib/generators/authentasaurus/views/templates/permissions/index.html.erb +0 -17
- data/lib/generators/authentasaurus/views/templates/permissions/new.html.erb +0 -19
- data/lib/generators/authentasaurus/views/templates/permissions/show.html.erb +0 -7
- data/lib/generators/authentasaurus/views/templates/recoveries/edit.html.erb +0 -24
- data/lib/generators/authentasaurus/views/templates/recoveries/new.html.erb +0 -15
- data/lib/generators/authentasaurus/views/templates/registrations/new.html.erb +0 -21
- data/lib/generators/authentasaurus/views/templates/sessions/new.html.erb +0 -41
- data/lib/generators/authentasaurus/views/templates/sessions/no_access.html.erb +0 -1
- data/lib/generators/authentasaurus/views/templates/user_invitations/index.html.erb +0 -14
- data/lib/generators/authentasaurus/views/templates/user_invitations/new.html.erb +0 -9
- data/lib/generators/authentasaurus/views/templates/users/edit.html.erb +0 -27
- data/lib/generators/authentasaurus/views/templates/users/index.html.erb +0 -19
- data/lib/generators/authentasaurus/views/templates/users/new.html.erb +0 -27
- data/lib/generators/authentasaurus/views/templates/users/show.html.erb +0 -11
- data/lib/generators/authentasaurus/views/templates/validations/resend_validation_email.html.erb +0 -6
- data/lib/generators/authentasaurus/views/templates/validations/validate.html.erb +0 -6
- data/lib/generators/authentasaurus/views/views_generator.rb +0 -76
- data/rdoc/apple-touch-icon.png +0 -0
- data/rdoc/classes/Authentasaurus.html +0 -65
- data/rdoc/classes/Authentasaurus/Ac.html +0 -72
- data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider.html +0 -104
- data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider/ClassMethods.html +0 -397
- data/rdoc/classes/Authentasaurus/Ac/Routing.html +0 -61
- data/rdoc/classes/Authentasaurus/Ac/Routing/InstanceMethods.html +0 -390
- data/rdoc/classes/Authentasaurus/Ar.html +0 -77
- data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable.html +0 -107
- data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/ClassMethods.html +0 -168
- data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/InstanceMethods.html +0 -357
- data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable.html +0 -109
- data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/ClassMethods.html +0 -113
- data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/InstanceMethods.html +0 -54
- data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider.html +0 -104
- data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider/ClassMethods.html +0 -320
- data/rdoc/classes/Authentasaurus/Ar/Authenticatable.html +0 -104
- data/rdoc/classes/Authentasaurus/Ar/Authenticatable/ClassMethods.html +0 -182
- data/rdoc/classes/Authentasaurus/Ar/Migrations.html +0 -63
- data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns.html +0 -68
- data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns/InstanceMethods.html +0 -106
- data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables.html +0 -68
- data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables/InstanceMethods.html +0 -703
- data/rdoc/classes/Authentasaurus/Arel.html +0 -65
- data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable.html +0 -107
- data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/ClassMethods.html +0 -139
- data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/InstanceMethods.html +0 -113
- data/rdoc/classes/Authentasaurus/Arel/Authenticatable.html +0 -105
- data/rdoc/classes/Authentasaurus/Arel/Authenticatable/ClassMethods.html +0 -119
- data/rdoc/classes/Authentasaurus/Authorization.html +0 -230
- data/rdoc/classes/Authentasaurus/Authorization/ActionController.html +0 -63
- data/rdoc/classes/Authentasaurus/Authorization/ActionController/ClassMethods.html +0 -263
- data/rdoc/classes/Authentasaurus/Authorization/ActionController/InstanceMethods.html +0 -54
- data/rdoc/classes/Authentasaurus/Authorization/ActionView.html +0 -54
- data/rdoc/classes/Authentasaurus/Authorization/CommonInstanceMethods.html +0 -240
- data/rdoc/created.rid +0 -1
- data/rdoc/css/main.css +0 -278
- data/rdoc/css/panel.css +0 -383
- data/rdoc/css/reset.css +0 -53
- data/rdoc/favicon.ico +0 -0
- data/rdoc/files/README_rdoc.html +0 -366
- data/rdoc/files/TODO.html +0 -64
- data/rdoc/files/lib/authentasaurus/ac/acts_as_overrider_rb.html +0 -52
- data/rdoc/files/lib/authentasaurus/ac/routing_rb.html +0 -60
- data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_rb.html +0 -52
- data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html +0 -52
- data/rdoc/files/lib/authentasaurus/ar/acts_as_overrider_rb.html +0 -52
- data/rdoc/files/lib/authentasaurus/ar/authenticatable_rb.html +0 -52
- data/rdoc/files/lib/authentasaurus/ar/migrations_rb.html +0 -52
- data/rdoc/files/lib/authentasaurus/arel/acts_as_authenticatable_rb.html +0 -52
- data/rdoc/files/lib/authentasaurus/arel/authenticatable_rb.html +0 -72
- data/rdoc/files/lib/authentasaurus/authorization_rb.html +0 -208
- data/rdoc/i/arrows.png +0 -0
- data/rdoc/i/results_bg.png +0 -0
- data/rdoc/i/tree_bg.png +0 -0
- data/rdoc/index.html +0 -15
- data/rdoc/js/jquery-1.3.2.min.js +0 -19
- data/rdoc/js/jquery-effect.js +0 -593
- data/rdoc/js/main.js +0 -22
- data/rdoc/js/searchdoc.js +0 -628
- data/rdoc/panel/index.html +0 -71
- data/rdoc/panel/search_index.js +0 -1
- data/rdoc/panel/tree.js +0 -1
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'erb'
|
2
|
-
require 'singleton'
|
3
|
-
|
4
|
-
module Authentasaurus
|
5
|
-
class Configuration
|
6
|
-
include Singleton
|
7
|
-
|
8
|
-
attr_accessor :hashing, :user_model, :default_namespace, :configuration
|
9
|
-
|
10
|
-
def load
|
11
|
-
@configuration ||= parse_config
|
12
|
-
end
|
13
|
-
|
14
|
-
private
|
15
|
-
|
16
|
-
# Parse the config/sphinx.yml file - if it exists
|
17
|
-
#
|
18
|
-
def parse_config
|
19
|
-
path = "#{Rails.root}/config/authentasaurus.yml"
|
20
|
-
return unless File.exists?(path)
|
21
|
-
|
22
|
-
conf = YAML::load(ERB.new(IO.read(path)).result)[Rails.env]
|
23
|
-
|
24
|
-
conf.each do |key,value|
|
25
|
-
self.send("#{key}=", value) if self.respond_to?("#{key}=")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
module Authentasaurus
|
2
|
-
class InstallGenerator < Rails::Generators::Base
|
3
|
-
source_root File.expand_path('../templates', __FILE__)
|
4
|
-
|
5
|
-
def install
|
6
|
-
copy_file "defaults.yml", "config/authentasaurus.yml"
|
7
|
-
copy_file "authentasaurus_tasks.rake", "lib/tasks/authentasaurus_tasks.rake"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
namespace :authentasaurus do
|
2
|
-
desc "Setup default data for authentasaurus"
|
3
|
-
task :setup_defaults => :environment do
|
4
|
-
puts "Setting default data"
|
5
|
-
unless ENV["authorizable"] == "false"
|
6
|
-
puts "- Creating Areas"
|
7
|
-
area = Area.create! :name => "all"
|
8
|
-
create_areas
|
9
|
-
puts "- Creating Administrators group"
|
10
|
-
group = Group.create! :name => "Administrators"
|
11
|
-
puts "- Creating permissions"
|
12
|
-
Permission.create! :area_id => area.id, :group_id => group.id, :write => true, :read => true
|
13
|
-
puts "- Creating default user"
|
14
|
-
User.create! :username=> "admin" ,:password => "Pass@123",:password_confirmation => "Pass@123",:name=> "admin",
|
15
|
-
:email=> Authentasaurus::Configuration.instance.configuration[:mail][:email], :active => true, :group_id => group.id
|
16
|
-
else
|
17
|
-
puts "- Creating default user"
|
18
|
-
User.create! :username=> "admin" ,:password => "Pass@123",:password_confirmation => "Pass@123",:name=> "admin",
|
19
|
-
:email=> Authentasaurus::Configuration.instance.configuration[:mail][:email], :active => true
|
20
|
-
end
|
21
|
-
|
22
|
-
puts "Created admin user, you can now login with the following credentials:"
|
23
|
-
puts ""
|
24
|
-
puts "Username: admin"
|
25
|
-
puts "Password: Pass@123"
|
26
|
-
end
|
27
|
-
|
28
|
-
desc "Finds and creates areas for use in authorization"
|
29
|
-
task :create_areas => :environment do
|
30
|
-
create_areas
|
31
|
-
end
|
32
|
-
|
33
|
-
def create_areas
|
34
|
-
puts "-- Locating areas"
|
35
|
-
controllers = Dir.new("#{RAILS_ROOT}/app/controllers").entries
|
36
|
-
controllers.each do |controller|
|
37
|
-
if controller =~ /_controller/ && !(controller =~ /application_controller/)
|
38
|
-
cont = controller.gsub("_controller.rb","")
|
39
|
-
puts "--- Creating #{cont} area"
|
40
|
-
area = Area.find_or_create_by_name cont
|
41
|
-
unless area.errors.empty?
|
42
|
-
puts area.errors.full_messages
|
43
|
-
raise "Could not create areas"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
## Authentasaurus configuration
|
2
|
-
development: &non_production_settings
|
3
|
-
:hashing: "SHA2" # MD5 - SHA1 - SHA2
|
4
|
-
:user_model: &user_model "user"
|
5
|
-
:mail:
|
6
|
-
:email: &development_email "foo_bar@your-domain.com"
|
7
|
-
:host: "http://localhost:3000/"
|
8
|
-
:modules:
|
9
|
-
:remote:
|
10
|
-
:user:
|
11
|
-
:site: "http://localhost:3000/api_key/auth"
|
12
|
-
:session_element: "remote_sync"
|
13
|
-
:sync: true
|
14
|
-
:sync_to: *user_model
|
15
|
-
:recoverable:
|
16
|
-
:token_expires_after: 10 # days
|
17
|
-
:send_email: true
|
18
|
-
:mail_subject: "Reset your password on your-domain.com"
|
19
|
-
:mail_from: *development_email
|
20
|
-
:invitable:
|
21
|
-
:send_email: true
|
22
|
-
:mail_subject: "You've been invited to your-domain.com"
|
23
|
-
:mail_from: *development_email
|
24
|
-
:validatable:
|
25
|
-
:send_email: true
|
26
|
-
:mail_subject: "Validate your account on your-domain.com"
|
27
|
-
:mail_from: *development_email
|
28
|
-
|
29
|
-
test:
|
30
|
-
<<: *non_production_settings
|
31
|
-
|
32
|
-
production:
|
33
|
-
:hashing: "SHA2" # MD5 - SHA1 - SHA2
|
34
|
-
:user_model: &user_model "user"
|
35
|
-
:mail:
|
36
|
-
:email: &production_email "foo_bar@your-domain.com"
|
37
|
-
:host: "http://your_website.com/"
|
38
|
-
:modules:
|
39
|
-
:remote:
|
40
|
-
:user:
|
41
|
-
:site: "http://localhost:3000/api_key/auth"
|
42
|
-
:session_element: "remote_sync"
|
43
|
-
:sync: true
|
44
|
-
:sync_to: *user_model
|
45
|
-
:recoverable:
|
46
|
-
:token_expires_after: 10 # days
|
47
|
-
:send_email: true
|
48
|
-
:mail_subject: "Reset your password on your-domain.com"
|
49
|
-
:mail_from: *production_email
|
50
|
-
:invitable:
|
51
|
-
:send_email: true
|
52
|
-
:mail_subject: "You've been invited to your-domain.com"
|
53
|
-
:mail_from: *production_email
|
54
|
-
:validatable:
|
55
|
-
:send_email: true
|
56
|
-
:mail_subject: "Validate your account on your-domain.com"
|
57
|
-
:mail_from: *production_email
|
@@ -1,13 +0,0 @@
|
|
1
|
-
Description:
|
2
|
-
Generates a stub for Authentasaurus restful authentication views.
|
3
|
-
|
4
|
-
Examples:
|
5
|
-
`./script/generate authentasaurus_views users`
|
6
|
-
|
7
|
-
creates views for Authentasaurus with main user model named "user" and controller named "users"
|
8
|
-
and places the user views under app/views/users
|
9
|
-
|
10
|
-
`./script/generate authentasaurus_views users --authorizable --validatable --invitable
|
11
|
-
|
12
|
-
creates views for Authentasaurus with main user model named "user" and also creates views
|
13
|
-
for authorization (--authorizable), invitation (--invitable) and validation (--validatable)
|
data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/invitation_mail.html.erb
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
<p>You've been invited to create an account at <%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> follow this <%= link_to "link", new_registrations_url(:host => Authentasaurus::Configuration.instance.configuration[:mail][:host], :token => @token) %> to respond to the invitation.</p>
|
2
|
-
|
3
|
-
<p>Best Regards,</p>
|
4
|
-
<p><%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> Team</p>
|
data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/recovery_mail.html.erb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<p>Dear <%= @name %>,</p>
|
2
|
-
|
3
|
-
<p>A request has been made to recover your account's password.</p>
|
4
|
-
<p>Please visit this <%= link_to "link", recover_password_url(:host => Authentasaurus::Configuration.instance.configuration[:mail][:host], :token => @token) %> and follow the instructions.</p>
|
5
|
-
|
6
|
-
<p>Best Regards,</p>
|
7
|
-
<p><%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> Team</p>
|
data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/validation_mail.html.erb
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
<p>Dear <%= @name %>,</p>
|
2
|
-
|
3
|
-
<p>Please validate your account at <%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> by visiting this <%= link_to "link", activate_url(:host => Authentasaurus::Configuration.instance.configuration[:mail][:host] , :code => @vcode) %>.</p>
|
4
|
-
|
5
|
-
<p>Best Regards,</p>
|
6
|
-
<p><%= Authentasaurus::Configuration.instance.configuration[:mail][:host] %> Team</p>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<h1>Editing <%= @permission.area.target %> permissions for <%= @permission.group.name %></h1>
|
2
|
-
<% form_for @permission do |f| %>
|
3
|
-
<%= f.label :group_id %>
|
4
|
-
<%= f.collection_select(:group_id, Group.find(:all), :id, :name, {:prompt => true}) %>
|
5
|
-
<br>
|
6
|
-
<%= f.label :area_id %>
|
7
|
-
<%= f.collection_select(:area_id, Area.find(:all), :id, :name, {:prompt => true}) %>
|
8
|
-
<br>
|
9
|
-
<%= f.label :group_id %>
|
10
|
-
<%= f.collection_select(:group_id, Group.find(:all), :id, :name, {:prompt => true}) %>
|
11
|
-
<br>
|
12
|
-
<%= f.label :read %>
|
13
|
-
<%= f.check_box :read %>
|
14
|
-
<br>
|
15
|
-
<%= f.label :write %>
|
16
|
-
<%= f.check_box :write %>
|
17
|
-
<br>
|
18
|
-
<%= f.submit %>
|
19
|
-
<% end %>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<h1>Permissions</h1>
|
2
|
-
<table>
|
3
|
-
<tr>
|
4
|
-
<th>Group</th>
|
5
|
-
<th>Area</th>
|
6
|
-
<th>Read</th>
|
7
|
-
<th>Write</th>
|
8
|
-
</tr>
|
9
|
-
<% @permissions.each do |permission| %>
|
10
|
-
<tr>
|
11
|
-
<td><%= link_to permission.group.name, permission.group %></td>
|
12
|
-
<td><%= link_to permission.area.name, permission.area %></td>
|
13
|
-
<td><%= check_box_tag :read, "read", permission.read, :disabled => true %></td>
|
14
|
-
<td><%= check_box_tag :write, "write", permission.write, :disabled => true %></td>
|
15
|
-
</tr>
|
16
|
-
<% end %>
|
17
|
-
</table>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<h1>Create Permission</h1>
|
2
|
-
<% form_for @permission do |f| %>
|
3
|
-
<%= f.label :group_id %>
|
4
|
-
<%= f.collection_select(:group_id, Group.find(:all), :id, :name, {:prompt => true}) %>
|
5
|
-
<br>
|
6
|
-
<%= f.label :area_id %>
|
7
|
-
<%= f.collection_select(:area_id, Area.find(:all), :id, :name, {:prompt => true}) %>
|
8
|
-
<br>
|
9
|
-
<%= f.label :group_id %>
|
10
|
-
<%= f.collection_select(:group_id, Group.find(:all), :id, :name, {:prompt => true}) %>
|
11
|
-
<br>
|
12
|
-
<%= f.label :read %>
|
13
|
-
<%= f.check_box :read %>
|
14
|
-
<br>
|
15
|
-
<%= f.label :write %>
|
16
|
-
<%= f.check_box :write %>
|
17
|
-
<br>
|
18
|
-
<%= f.submit %>
|
19
|
-
<% end %>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<h1><%= @permission.area.name %> permissions for <%= @permission.group.name %></h1>
|
2
|
-
<% if @permission.read %>
|
3
|
-
<h3>Members of <%= @permission.group.name %> have read permission for <%= @permission.area.name %></h3>
|
4
|
-
<% end %>
|
5
|
-
<% if @permission.write %>
|
6
|
-
<h3>Members of <%= @permission.group.name %> have write permission for <%= @permission.area.name %></h3>
|
7
|
-
<% end %>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<h1>Fill in your new password</h1>
|
2
|
-
|
3
|
-
<% form_tag do_recover_password_path, :method => :delete do %>
|
4
|
-
<%= error_messages_for :user %>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<%= label_tag :name %><br />
|
8
|
-
<%= text_field_tag :name, @user.name, :disabled => true %>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<%= label_tag "user[new_password]", "Password" %><br />
|
13
|
-
<%= password_field_tag "user[new_password]" %>
|
14
|
-
</p>
|
15
|
-
<p>
|
16
|
-
<%= label_tag "user[new_password_confirmation]", "Password confirmation" %><br />
|
17
|
-
<%= password_field_tag "user[new_password_confirmation]" %>
|
18
|
-
</p>
|
19
|
-
<p>
|
20
|
-
<%= submit_tag "Set" %>
|
21
|
-
</p>
|
22
|
-
<% end %>
|
23
|
-
|
24
|
-
<%= link_to "Cancel", url_for(:back) %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<h1>Recover your password</h1>
|
2
|
-
|
3
|
-
<% form_tag do_forgot_password_path, :method => :post do %>
|
4
|
-
<%= error_messages_for :recovery %>
|
5
|
-
<p>
|
6
|
-
<%= label_tag :email %><br />
|
7
|
-
<%= text_field_tag :email, params[:email] %>
|
8
|
-
</p>
|
9
|
-
|
10
|
-
<p>
|
11
|
-
<%= submit_tag "Send Instructions" %>
|
12
|
-
</p>
|
13
|
-
<% end %>
|
14
|
-
|
15
|
-
<%= link_to "Cancel", url_for(:back) %>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<h1>Enter your data</h1>
|
2
|
-
<% form_for @user, :url => registrations_path(:token => params[:token]) do |f| %>
|
3
|
-
<%= f.error_messages %>
|
4
|
-
<br>
|
5
|
-
<%= f.label :username %>
|
6
|
-
<%= f.text_field :username, :size => 30 %>
|
7
|
-
<br>
|
8
|
-
<%= f.label :password %>
|
9
|
-
<%= f.password_field :password, :size => 30 %>
|
10
|
-
<br>
|
11
|
-
<%= f.label :password_confirmation %>
|
12
|
-
<%= f.password_field :password_confirmation, :size => 30 %>
|
13
|
-
<br>
|
14
|
-
<%= f.label :name %>
|
15
|
-
<%= f.text_field :name, :size => 30 %>
|
16
|
-
<br>
|
17
|
-
<%= f.label :email %>
|
18
|
-
<%= f.text_field :email, :size => 30 %>
|
19
|
-
<br>
|
20
|
-
<%= f.submit "Create" %>
|
21
|
-
<% end %>
|
@@ -1,41 +0,0 @@
|
|
1
|
-
<div class="form-stroke">
|
2
|
-
<%= flash[:alert] if flash[:alert] %>
|
3
|
-
<% form_for @session do |f| %>
|
4
|
-
<h2>Sign in</h2>
|
5
|
-
<br>
|
6
|
-
<%= f.error_messages %>
|
7
|
-
<p>
|
8
|
-
<%= f.label :username %>
|
9
|
-
<%= f.text_field :username, :style => "width: 98%;" %>
|
10
|
-
</p>
|
11
|
-
|
12
|
-
<p>
|
13
|
-
<%= f.label :password %>
|
14
|
-
<%= f.password_field :password, :style => "width: 98%;" %>
|
15
|
-
</p>
|
16
|
-
|
17
|
-
<label>
|
18
|
-
<%= f.check_box :remember %> Remember me
|
19
|
-
</label>
|
20
|
-
|
21
|
-
<div>
|
22
|
-
<div style="float:left; padding-top: 9px;">
|
23
|
-
<% unless defined?(forgot_password_path).nil? %>
|
24
|
-
<p>
|
25
|
-
<%= link_to(t(:forgot_password_link, :scope => [:authentasaurus, :views, :sessions]), forgot_password_path) %>
|
26
|
-
</p>
|
27
|
-
<% end %>
|
28
|
-
|
29
|
-
<% unless defined?(resend_validation_email_path).nil? %>
|
30
|
-
<p>
|
31
|
-
<%= link_to(t(:resend_validation_email_link, :scope => [:authentasaurus, :views, :sessions]), resend_validation_email_path) %>
|
32
|
-
</p>
|
33
|
-
<% end %>
|
34
|
-
</div>
|
35
|
-
<div style="float:right;">
|
36
|
-
<%= submit_tag "Sign in" %>
|
37
|
-
</div>
|
38
|
-
<br style="clear: both;">
|
39
|
-
</div>
|
40
|
-
<% end %>
|
41
|
-
</div>
|