search for: user_login

Displaying 20 results from an estimated 38 matches for "user_login".

2007 Aug 31
2
Give focus to an input field of a form
Hi, I am new to rails and I have setup Typo on my site. One little thing bugs me, the login page doesn''t give focus to the "user_login" field. I was wondering what do I need to do to make rails help with this? I have seen some simple inline javascript to set the focus, sort of like: document.<form_name>.user_login.focus() However the rails view doesn''t have name for the form, so that code won''t wor...
2014 Jun 12
4
[Bug 2245] New: Multiple USER_LOGIN messages when linux audit support is enabled on bad login
https://bugzilla.mindrot.org/show_bug.cgi?id=2245 Bug ID: 2245 Summary: Multiple USER_LOGIN messages when linux audit support is enabled on bad login Product: Portable OpenSSH Version: 6.6p1 Hardware: Other OS: Linux Status: NEW Severity: normal Priority: P5 Component: sshd...
2006 Mar 03
5
Quick question about @params
I was looking through the loginGenerator code and noticed the following: Login: User.authenticate(@params[:user_login], @params[:user_password]) Signup User.authenticate(@user.login, @params[:user][:password]) The syntax of the call in the signup code confused me...what exactly does @params[:user][:password] this return to me? Is the params structure a multi-dimensional array? I would have thought that the...
2005 Jun 01
3
Mixing Controllers
...controller. Validating my user happens through a login_controller. Now if validation is good it is ok because I have a redirect in my login_controller. But if the login is not successful I have to go back to my view from my sign_up controller. Using redirect makes no sense because my @user_login object is lost and so are errors. How would you suggest I go about this? Thanks.
2007 Jul 01
3
Session WTF ?
...rams[:user]) ok = false redir = ''login_failed'' @remote_user = User.find(:all) @remote_user.each do |r_user| if (r_user.login == @current_user.login and r_user.pass == @current_user.pass) ok = true end end if (ok) session[:user_login] = params[:login] session[:user_access] = params[:access] redir = ''list_article'' end redirect_to :action => redir end I want to display the name of logged person. In my views I have: <%= if session[:user_login] then "OK #{session[:user_logi...
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
...uot;Login unsuccessful" redirect_to :action=> "login" end end end ..... login.html.erb: <div id="login"> <h1>Please Login</h1> <form method="post" action=""> <p><label for="user_login">Username</label> <%= text_field "user", "username", :class => ''textbox'', :value => '''', :maxlength => 40 %></p> <p><label for="user_password">Password</label>...
2006 Jun 06
1
Redirect\Cookie bug with MSIE 5.5sp2
Hello all, There seems to be a bug in internet explorer 5 where a redirect causes the session to be lost. A controller says.... def login case @request.method when :post if @session[:user] = User.authenticate(@params [:user_login], @params[:user_password]) return redirect_to(:action=>''send_confirmation'') unless @session[:user].confirmed? flash[:notice] = "Welcome back, " + @session [:user].display_name redirect_back_or_default "/" e...
2006 May 25
1
AppMailer and McCray''s theme generator
...troller < ApplicationController model :user layout ''login'' def index redirect_to ''/account/login'' end def login case @request.method when :post if @session[''user''] = User.authenticate(@params[''user_login''], @params[''user_password'']) AppMailer.deliver_alert("Login: #{@session[''user''][''name'']}","#{@session[''user''][''name'']} just logged on PTM") flash[''noti...
2006 May 10
3
AJAX reload
...oading:function(request){Form.disable(this)}, parameters:Form.serialize(this)}); return false;" style="display:none" style="opacity:.80"> <h2>Log in</h2> <div id="login-panel-message"></div> <p><label for="user_login">Login:</label><br/> <input type="text" name="user_login" id="user_login" size="30" value=""/></p> <p><label for="user_password">Password:</label><br/> <input type=&q...
2006 Jul 04
1
LoginGenerator Problem
...lidates_confirmation_of :password, :on => :create end class UserController < ApplicationController model :user layout ''scaffold'' def login case @request.method when :post if @session[''user''] = User.authenticate(@params[''user_login''], @params[''user_password'']) flash[''notice''] = "Login successful" redirect_back_or_default :action => "welcome" else @login = @params[''user_login''] @message =...
2008 Feb 14
4
How do I access this parameter?
Hi, I have a form for creating users ... <% form_tag ''userconfirm'' do -%> <!-- more code --> <p><label for="user_login">Username</label><br/> <%= text_field ''user'', ''login'' %></p> <p><label for="user_password">Password</label><br/> <%= password_field ''user'', ''password'' %&gt...
2011 Dec 16
4
nil object Error
hi all, i am getting following error ,i can''t figure it out why and from where it is coming ? please help me out to resolved this error if anyone knows about this issue. i am using following env. O.S:Windows XP Ruby:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] Rails:Rails 2.3.11 Gem:1.6.2 ActionView::TemplateError (You have a nil object when you didn''t expect
2011 Jul 25
7
Adding a folder to my rspec execution path
Hi guys, I''m using RSpec with Capybara, and for that I created the spec/integration folder. But when I execute the command "bundle exec rspec spec" RSpec don''t execute my files on integration folder. I need to pass each file to solve this problem. Do you known how I can put the integration folder on rspec execution path without need to pass each file? Thanks, Pablo
2007 Jul 31
2
merb speed
...ing the following code - is there anything obviously wrong with it? I''m getting numbers of over 10 seconds per page load when I have 50 users repeatedly requesting a dynamic page in a loop: client = HTTPAccess2::Client.new client.set_cookie_store("cookie.dat") client.post(url, {:user_login => login, :user_password => pwd}) client_time = [] all_client_avg = [] all_server_avg = [] $total_client_avg = [] $total_server_avg = [] num_iterations.times do |i| folders = YAML.load(client.get_content("#{url}/folder/all_user_folders")) folders.each do |folder| client_time &lt...
2013 Apr 08
1
Audit logs source of account triggering it.
Hi. The auditd logs are full of lines referencing 28756E6B6E6F776E207573657229 , but I can't identify this account type=USER_LOGIN msg=audit(1364926580.306:249814): user pid=22565 uid=0 auid=4294967295 ses=4294967295 msg='op=login acct=28756E6B6E6F776E207573657229 exe="/usr/sbin/sshd" hostname=? addr=127.0.0.1 terminal=ssh res=failed' What would typically cause this ? There are no other references in any of...
2013 Jun 12
1
Audit logs containing 28756E6B6E6F776E207573657229
Hi. I'm seeing a lot of entries in /var/log/audit/audit.log acct=28756E6B6E6F776E207573657229 , which apparently means unknown user . Sample from the logs : type=USER_LOGIN msg=audit(1370998250.746:1622709): user pid=16762 uid=0 auid=4294967295 ses=4294967295 msg='op=login acct=28756E6B6E6F776E207573657229 exe="/usr/sbin/sshd" hostname=? addr=127.0.0.1 terminal=ssh res=failed' How do I track down what is causing this ? Thus far I have has not lu...
2010 Mar 30
2
Mbox corruption - Inbox beginning with 'FFrom' or 'FrFrom'
Hi, Since the 23rd of March, we encounter mailbox corruption for some users (15 out of 5000) using POP mainly via Thunderbird. Symptoms are : -users can login but fail to receive new mails and fail to read their inbox -Dovecot.log : ar 29 11:00:06 Error: POP3(user_login): Couldn't init INBOX: Mailbox isn't a valid mbox -The mailbox start with either 'FFrom or 'FrFrom' We can temporarily fix the issue by manually editing the mailbox so that it begins with a proper 'From'. For some users, the problem reoccurred after we apply this...
2006 Dec 06
2
ssh 4.x using aix 5.3 auditing
...= on bin: trail = /audit/trail bin1 = /audit/bin1 bin2 = /audit/bin2 binsize = 10240 cmds = /etc/security/audit/bincmds freespace = 65536 stream: cmds = /etc/security/audit/streamcmds classes: default = login init = USER_Login, USER_Logout, USER_Exit, USER_Logout users: root = init,default =========================== below is the output from /audit/stream.out #:/etc/security/audit # tail -f /audit/stream.out event login status time command --------------- -------- -...
2011 May 05
1
variables inside a template for my hp ilo device
...ay[1] + ''.'' + iparray[2] + ''.'' + ilonet gwarray = iloip.split(''.'') gateway = gwarray[0] + ''.'' + gwarray[1] + ''.'' + gwarray[2] + ''.'' + gwbit <RIBCL VERSION="2.0"> <LOGIN USER_LOGIN="adminname" PASSWORD="password"> <SERVER_INFO MODE="write"> <SERVER_NAME value ="<%= hostname %>"/> </SERVER_INFO> <RIB_INFO MODE="write"> <MOD_NETWORK_SETTINGS> <SPEED_AUTOSELE...
2009 Jan 27
2
Login form_tag with select_tag option
...t_to :controller=>''admins'', :action => ''index'' else session[:user] = validUser.id redirect_to :controller=>''projects'', :action => ''index'' end #View <label for="user_login">Username:</label> <%= text_field("login", "username", :size=>"20" ) %> <label for="user_password">Password:</label> <%= password_field("login", "password",:size=&gt...