search for: login_url

Displaying 16 results from an estimated 16 matches for "login_url".

2006 Jun 16
0
Strange problem with ActionMailer
...ost recent file modification date. Restarting the application fixes the problem. Also, this is running under scgi, and development versus production mode doesn''t seem to make any difference. class Notifier < ActionMailer::Base def signup_confirmation(merchant,affiliate,password,login_url,signup_path) Notifier.template_root = signup_path # Email header info MUST be added here @recipients = affiliate.email,merchant.email if merchant.signup_confirmation_from.empty? @from = merchant.email else @from = merchant.signup_confirmation_from en...
2006 Jun 21
0
Possible bug in actionmailer
...t recent file modification date. Restarting the application fixes the problem. Also, this is running under scgi, and development versus production mode doesn''t seem to make any difference. class Notifier < ActionMailer::Base def signup_confirmation(merchant,affiliate,password,login_url,signup_path) Notifier.template_root = signup_path # Email header info MUST be added here @recipients = affiliate.email,merchant.email if merchant.signup_confirmation_from.empty? @from = merchant.email else @from = merchant.signup_confirmation_from end i...
2006 Jul 14
8
CAS Authentication filter.
...t a CAS server. The SVN path to the plugin is http://svn.ki.se/rails/plugins/cas_auth and a homepage with some information can be found at http://opensource.ki.se/casauth.html For use, just install the plugin in your application and set these attributes in your environment.rb CAS::Filter.login_url CAS::Filter.validate_url CAS::Filter.server_name -- Ola Bini (http://ola-bini.blogspot.com) JvYAML, RbYAML, JRuby and Jatha contributor System Developer, Karolinska Institutet (http://www.ki.se) OLogix Consulting (http://www.ologix.com) "Yields falsehood when quined" yi...
2007 Oct 11
2
Login testing ideas
I''ve been going through Pat''s example story and noticed that there was no checking for a bad login. I assume this is because that would have made the article bigger and more complicated than it needed to be. So the question that comes of of this is: How do folks normally handle the negative case? My plan was to just use another scenario, but as a new person to BDD/TDD,
2007 Jul 26
6
response.should_not redirect_to
Hey, May be it is just too deep night over here and I''m missing something though I got this failure on {{{response.should_not redirect_to}}}: ''QueuesController should allow authenticated user to access ''show'''' FAILED Matcher does not support should_not. See Spec::Matchers for more information about matchers. Also I''ve found this in
2006 May 17
3
What am I missing?
There''s got to be a simple answer to this... def logout reset_session flash[:notice] = "Logged out" redirect_to :action => ''index'' end The flash never shows up, and doesn''t seem to be in the new session. --Al Evans -- Posted via http://www.ruby-forum.com/.
2005 Nov 16
3
controller before_filter issues
Hi, Some controller filters: before_filter :require_logged_in, :only => [:create, :new, :confirm] before_filter :init_players, :only => [:create, :new, :confirm] The first one, you guessed it, redirects a user if he''s not logged in. Now when I hit this page and I''m not logged in, the 2nd filter gets executed and throws an error, because it depends on the user
2007 Oct 26
2
Examples of writing controller specs that use authentication
Hello, I''m working on specs for a controller that handles authentication using the restful_authentication plugin. I''m trying to find a resource (tutorial or examples, if possible) about the best way to go about writing mocks and specs to make sure that things like my before_filters are working correctly. Does anyone know of any good resources for this? Thanks, Les
2008 Mar 01
15
before_filter strange behaviour on update and create
...:auth def auth req_perm = Permission.find_by_name("Permission Blah") access = AccessController.new() if access.is_logged_in(session.session_id) if !access.get_current_user(session.session_id).role.permissions.include? req_perm redirect_to no_permission_url end else redirect_to login_url end end It works for the view pages but if an update or create is made then it always redirects to the login_url. Acting like the user is not logged in. But that''s wrong. Did I miss something about the before_filer ? Does it work different on update/create ? -- Posted via http://www.ru...
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
...I can see that the param is passing into the login page, but for whatever reason, no matter what I do, the user is redirected to the homepage after login. Would anyone have any ideas? thanks soo much! -Mario #code from show.rhtml if current_user #ajax code else link_to "vote up", login_url(:referrer_uri => request.request_uri) %> end #Controller def create uri ||= params[:referrer_uri] #pull in hacked original_uri uri ||= session[:original_uri] #pull in sessions''s original uri uri ||= homepage_url #default to homepage render :action => :new and...
2008 May 15
3
Facebooker support for iframe apps
Hi facebooker-ers, It looks to me like facebooker does not currently support iframe facebook apps - or am I missing something? My first problem as I understand it is as follows - When you are logged into facebook, and access a facebook application, facebook tacks on a whole lot of extra fb_sig parameters to the request (including fb_sig_user) that the application can then validate to
2008 Jun 12
0
Double Frame Problem
...nternal-iframe-facebook.html): def create_new_facebook_session_and_redirect! session[:facebook_session] = new_facebook_session render :layout => false, :inline => %Q{<script type="text/javascript"> top.location.href = "<%= session[:facebook_session].login_url -%>" </script>} end def application_is_not_installed_by_facebook_user render :layout => false, :inline => %Q{<script type="text/javascript"> top.location.href = "<%= session[:facebook_session].install_url -%>" </sc...
2010 Apr 06
1
captcha in a belongs_to
...match with image." And in update action of of staff controller def update @staff = Staff.find(params[:id]) @user = @staff.user if @staff.valid_with_captcha? and @user.update_attributes(params[:user]) flash[:notice] = "check your mail " redirect_to login_url else flash.now[:error] = @staff.errors.full_messages.join("<br />") #This I wrote deliberately render :action => :edit end end But even I put the correct captcha code and submit , it always shows message "Verification code does not match with...
2006 Feb 21
2
Ajax status
Hello All. I''m making ajax call to some url but to connect and get data from that url first I check session for user which using AJAX. If session is expired I redirect Ajax call to other url. That url return form to login. There is one problem - I check in function onResponse(OriginalRequest) OriginalRequest status and status is always 200 - whatever I''m logged or not. So i
2006 Jul 14
2
Configuration search order
Hi I''m in the process of deciding how a plugin should be designed to make configuration as easy as possible. Right now I require the plugin from init.rb, and set some configuration options (as class attribute accessors) from environment.rb. Then I tried setting these from environments/development.rb instead, and to my surprise this didn''t work. It said the class in question
2011 Feb 11
11
CSRF protection in rails 2.3.11
Hi all, I think CSFR protection broke in rails 2.3.11. As in: it''s turned off now. I tried this in rails 2.3.10 and in 2.3.11 and 2.3.11 seems broken. >rails csrftest >cd csrftest >script/generate scaffold post title:string >rake db:migrate now I visit /posts/new in my browser, use firebug to delete or change the authenticity token, and submit the form. rails 2.3.11: all