Displaying 20 results from an estimated 48 matches for "user_password".
2007 Aug 31
2
Give focus to an input field of a form
...ot; class="block"><%= _(''Username'')%>:</
label>
<input type="text" name="user_login" id="user_login"
size="20" value=""/>
</li>
<li>
<label for="user_password" class="block"><%= _(''Password'')
%>:</label>
<input type="password" name="user_password"
id="user_password" size="30"/>
</li>
</ul>
<input type="submit&quo...
2006 Jul 30
3
Accessing @org.id yields internal number, not record id
...est thing: How to reference
a record id instead of the internal memory location of that value. I''m
new to Ruby but otherwise a veteran VB6/SQL programmer.
My code:
<snip>
sSQL = "SELECT id, org_name FROM organizations WHERE user_id =
''#{sUserId}'' AND user_password = ''#{sPassword}''"
@org = Organization.find_by_sql sSQL
if @org
write_log("Org found. Id = #{@org.id}")
</snip>
My log file contains:
Org found. Id = 30382648
I am expecting Id to be 1.
There are only two records in the organization...
2010 Aug 17
2
[Form] Method POST & PUT problem
...method">
<input type="hidden"
value="YttRSHr2SzCqC4FbQccH6QgcWVKRkf1IBIIXnQhuaFw="
name="authenticity_token"></div>
<fieldset class="inputs"><legend><span>Informações</span></legend><ol>
<li id="user_password_input" class="password required"><label
for="user_password">Password<abbr
title="required">*</abbr></label><input type="password" size="50"
name="user[password]" id="user_password"></li>...
2006 May 10
3
AJAX reload
...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="password" name="user_password" id="user_password"
size="30"/></p>
<p>
<input name="commit" type="submit" value="Log in" /> -or-...
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
login and signup use of...
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
...ot;>
<p><label for="user_login">Username</label>
<%= text_field "user", "username", :class => ''textbox'', :value
=> '''', :maxlength => 40 %></p>
<p><label for="user_password">Password</label>
<%= password_field "user", "password", :class =>
''textbox'', :value => '''', :maxlength => 40 %></p>
<p class="buttons">
<%= submit_tag ''Login&...
2008 Feb 14
4
How do I access this parameter?
...eating 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'' %></p>
<p><label for="password_confirmation">Confirm Password</label><br/>
<%= password_field ''user'', ''p...
2007 Apr 16
6
How to use a form.check_box ?
...t;user". This is what I have so far but nothing is rendering
just because of the check_box line.
<% form_for :user do |form| %>
<p>
<label for "user_name">Name:</label>
<%= form.text_field :name %>
</p>
<p>
<label for="user_password">Password:</label>
<%= form.password_field :password %>
</p>
<p>
<label for="user_password_confirmation">Confirm:</label>
<%= form.password_field :password_confirmation %>
</p>
<p>
<label for="us...
2007 Jul 31
2
merb speed
...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 << Benchmark.realtime do...
2008 Nov 07
1
Problem autenticating user
...The database password was encryted with the same
encrypt method. I dont know what i need to do.
TNKS a lot..
# Authenticates a user by their login name and unencrypted password. Returns
the user or nil.
*
def self*.authenticate(login, password)
u = find_by_login(login) # need to get the salt and user_password
u && u.authenticated?(password) ? u :* nil
end
*
# Encrypts some data with the salt.
*
def self*.encrypt(password, salt)
Digest::SHA1.hexdigest("--#{salt}--#{password}--")
*
end
*
# Encrypts the password with the user salt
*
def* encrypt(password)
*
self*.class.encrypt(pa...
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 "/"
else
flash.no...
2006 Jul 06
1
Problem implementing password and password confirmation
...;Create" %>
<% end_form_tag %>
And _form.rhtml has:
====================
<!--[form:user]-->
<p><label for="user_name">Name</label><br/>
<%= text_field ''user'', ''name'' %></p>
<label for="user_password">Password:</label><br />
<%= text_field :password, :size => 40 %><br />
<label for="user_password_confirmation">Confirm Password:</label><br />
<%= text_field :password_confirmation, :size => 40 %><br />
<!--[eoform:u...
2012 Aug 01
2
Problem provisioning Cisco SPA303
...I've included, below, a (sanitized) copy of the file I'm using. The user_id is
simply the device's MAC address, followed by a dash, then the line number.
Any help you could give me would be most appreciated.
<flat-profile>
<HostName>hostnamexxx</HostName>
<User_Password></User_Password>
<Admin_Passwd></Admin_Passwd>
<Auth_Resync-Reboot_1_>No</Auth_Resync-Reboot_1_>
<Auth_Resync-Reboot_2_>No</Auth_Resync-Reboot_2_>
<Display_Name_1_ ua="na">3CCE73D241A9-1</Display_Name_1_>
<User_ID_1_ ua="n...
2006 May 25
1
AppMailer and McCray''s theme generator
...el :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[''notice''] = "Login successful"...
2012 Dec 20
1
Director and forwarding LDAP user as Master user
...LDAP user with plain or encrypted password and send the user to back-end Dovecot server after the authentication.
According to Wiki it is only possible if we use the master user to communicate to the back-end server.
On the back-end Dovecot server it is working fine, I can log in as normal user/user_password or as user*masteruser/master_password. The back-end config is:
auth_master_user_separator = *
passdb {
driver = passwd-file
args = /usr/local/dovecot/etc/dovecot/passwd.masterusers
master = yes
pass = yes
}
passdb {
driver = ldap
args = /usr/local/dovecot/etc/dovecot/dovecot-ldap.conf...
2006 Dec 07
6
form_tag not producing output
...rm_tag :action => ''login'' %>
<label for="user_login">Login:</label><br/>
<input type="text" name="user_login" id="user_login" size="30"
value=""/><br/>
<label for="user_password">Password:</label><br/>
<input type="password" name="user_password" id="user_password" size="30"/>
<br/>
<input type="submit" name="login" value="Login »" class="prima...
2005 Sep 02
7
Form to update two tables
...<br/>
<%= text_field "company", "name", :size => 30 %><br/>
<label for="user_login">Desired login:</label><br/>
<%= text_field "user", "login", :size => 30 %><br/>
<label for="user_password">Choose password:</label><br/>
<%= password_field "user", "password", :size => 30 %><br/>
<label for="user_password_confirmation">Confirm
password:</label><br/>
<%= password_field "user", &quo...
2006 May 04
6
Login generator ALWAYS says login unseccesfull
Hey I just ran this "ruby script/generate login loging_in" here is my
SQL:
CREATE TABLE `users` (
`id` int(11) NOT NULL auto_increment,
`user_name` varchar(80) default NULL,
`login` varchar(120) NOT NULL default '''',
`last_update` timestamp NOT NULL default ''0000-00-00 00:00:00'',
`last_attack` timestamp NOT NULL default ''0000-00-00
2006 Jul 04
1
LoginGenerator Problem
...t; :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 = "Login unsuccessful"
end...
2006 Jan 21
5
How do you deal with non-model property form values
...ot;user_email">Email</label>:</td>
<td><%= text_field("user", "email") %></td>
</tr>
<tr>
<td align="right" width="1%" nowrap="nowrap"><label class="required"
for="user_password">Password</label>:</td>
<td><%= password_field("user", "password") %></td>
</tr>
<tr>
<td align="right"><input type="checkbox" id="remember"
name="remember"/></td...