search for: verify_user

Displaying 4 results from an estimated 4 matches for "verify_user".

2006 Jun 27
0
More idiomatic way of doing this
...xml.baddata @baddata end app/controllers/application.rb: require ''util/render_error'' class ApplicationController < ActionController::Base include RenderError end app/controllers/user_controller.rb: class UserController < ApplicationController before_filter :verify_user private def verify_user @user = User.find_by_username params[:username] if @user.nil? render_user_exists params[:username] false else true end end end Thanks, Joel -- http://wagerlabs.com/
2006 Jun 30
4
More idiomatic way of writing a filter
Is there a more elegant way of writing this? def verify_user @user = User.find_by_username params[:username] if @user.nil? message = xml.error do |xm| xm.message "User does not exists: #{params[:username]}" end render :xml => message return false else true end...
2008 Nov 05
3
Problems w/ before_filter getting ignored
...ams[:username], params[:password]) unless user.blank? || user.nil? session[:user] = user end redirect_to store_location end end and here''s the code I have so far in application.rb [/code] [code] class ApplicationController < ActionController::Base before_filter :verify_user, :except => :login before_filter :store_location, :except => :login include Authentication helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details # Uncomment the :secret if you''re not using the cookie session store p...
2014 Sep 15
1
Issue creating mailboxes
...t; cm user.textuser4 [joliver at localhost ~]$ sudo ls -l /var/vmail/u/ total 12 drwx------. 2 cyrus mail 4096 Sep 15 15:07 user^testuser2 drwx------. 2 cyrus mail 4096 Sep 15 14:51 user^testuser3 drwx------. 2 cyrus mail 4096 Sep 15 15:07 user^textuser4 Sep 15 15:05:18 localhost lmtpunix[15704]: verify_user(user.testuser2) failed: Mailbox does not exist Sep 15 15:05:18 localhost master[15929]: about to exec /usr/lib/cyrus-imapd/lmtpd Sep 15 15:05:18 localhost lmtpunix[15929]: executed Sep 15 15:05:18 localhost postfix/lmtp[15928]: 4B2E61ED5: to=<testuser2 at domain.com>, relay=localhost.localdom...