search for: clear_password

Displaying 5 results from an estimated 5 matches for "clear_password".

2012 Apr 25
8
showing error (gsub) when switching from session to cookies
...user.save! cookies[:authorization_token] = { :value => user.authorization_token, :expires => 10.years.from_now } else cookies.delete(:remember_me) cookies.delete(:authorization_token) end flash[:notice] = "User #{user.screen_name} logged in!" redirect_to_forwarding_url else @user.clear_password! flash[:notice] = "Invalid screen name/password combination" end end end Please do the needful. I don''t have much time, I need to deliver this project in my college. Thanks Amir -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribe...
2007 Aug 09
3
method_missing error......need some eyes for this one
...uot;email" try_to_update @user, attribute when "password" if @user.correct_password?(params) try_to_update @user, attribute else @user.password_errors(params) end end end #For security purposes, never fill in the password fields. @user.clear_password end # Try to update the user, redirecting if successful. def try_to_update(user, attribute) if user.update_attributes(params[:user]) flash[:notice] = "User #{attribute} updated." redirect_to :action => "index" end end ___________________ User.rb #Return true if the p...
2018 Nov 15
1
Dovecot proxy: per user/domain 'namespace/inbox/prefix' from MySQL
...refix' FROM mailbox WHERE email = '%u' AND disabled_smtpauth=0 3. The mailbox table schema reads: CREATE TABLE `mailbox` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL DEFAULT '', `password` varchar(255) NOT NULL DEFAULT '', `clear_password` varchar(255) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', `host` varchar(32) DEFAULT NULL, `port` varchar(32) DEFAULT NULL, `ns_inbox_prefix` varchar(255) NOT NULL DEFAULT '', `lastlog_remote_ips` bigint(20) unsigned NOT NULL DEFAULT 0, `c...
2010 Jul 31
4
Exception: can't dup Symbol
Hey everybody, I''m trying to test a little piece of code I wrote, and I get the following error: Exception: can''t dup Symbol It happens in the following line: try_to_login @valid_user, :remember_me => "1", where the function try_to_login is: def try_to_login(user, options = {}) user_hash = {:screen_name => user.screen_name, :password => user.password}
2010 Aug 14
10
Redirecting after logging in
Hey everybody, I''m trying to make an example of a small networking site, and when I log in a user, it should redirect and show his profile, but I get the following error: NoMethodError in User#index Showing app/views/user/index.html.erb where line #5 raised: undefined method `screen_name'' for nil:NilClass Extracted source (around line #5): 2: Your basic information 3: