diff --git a/app/controllers/admin/sessions_controller.rb b/app/controllers/admin/sessions_controller.rb index c55aa508..88a140fd 100644 --- a/app/controllers/admin/sessions_controller.rb +++ b/app/controllers/admin/sessions_controller.rb @@ -1,7 +1,6 @@ class SessionsController < Devise::SessionsController - def create - debugger + def create super reset_session end diff --git a/app/controllers/desktop/registrations_controller.rb b/app/controllers/desktop/registrations_controller.rb index 676bfe8e..264ddde7 100644 --- a/app/controllers/desktop/registrations_controller.rb +++ b/app/controllers/desktop/registrations_controller.rb @@ -1,4 +1,5 @@ class Desktop::RegistrationsController < Devise::RegistrationsController + def update self.resource = resource_class.to_adapter.get!(send(:"current_#{resource_name}").to_key) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb new file mode 100644 index 00000000..57aa5f7c --- /dev/null +++ b/app/controllers/registrations_controller.rb @@ -0,0 +1,3 @@ +class RegistrationsController < Devise::RegistrationsController + layout "devise" +end \ No newline at end of file diff --git a/app/models/user/user.rb b/app/models/user/user.rb index 0baabc15..2bfc4eeb 100644 --- a/app/models/user/user.rb +++ b/app/models/user/user.rb @@ -60,6 +60,10 @@ class User validates :user_id, :presence => { :message => I18n.t("users.user_id_not_null") } , :length => {:minimum => 3, :maximum => 50, :message => I18n.t("users.user_id_length") } + + def email_required? + false + end # validates_uniqueness_of :email,:message=> I18n.t("devise.registrations.email_not_unique") # def new_attribute_values=(vars) diff --git a/app/views/admin/sites/preference.html.erb b/app/views/admin/sites/preference.html.erb index 24437520..ff4f802e 100644 --- a/app/views/admin/sites/preference.html.erb +++ b/app/views/admin/sites/preference.html.erb @@ -163,8 +163,9 @@