Permalink
Browse files

register: fix for failed registrations

  • Loading branch information...
1 parent 80f35d2 commit 70a2b0d91eda040a7915c062a6a7e695e29b87d5 @nackd nackd committed Dec 29, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/cas/account_controller_patch.rb
@@ -15,6 +15,7 @@ def self.included(base) # :nodoc:
alias_method_chain :login, :cas
alias_method_chain :logout, :cas
+ alias_method_chain :register, :cas
end
end
@@ -39,6 +40,13 @@ def logout_with_cas
logout_without_cas
end
end
+
+ def register_with_cas
+ register_without_cas
+ if CAS::CONFIG['enabled'] and !performed?
+ render :template => 'account/register_with_cas'
+ end
+ end
end
end
end

0 comments on commit 70a2b0d

Please sign in to comment.