Displaying 1 result from an estimated 1 matches for "id_prod_p".
2006 Jun 29
1
Problems getting past authentication using functional tests
...out ''fingeruid''"
end
def login_uid
# get the uid
@ppid = params[:id]
# check the uid
begin
user = get_user_from_ppid @ppid
$stderr.puts ''should have thrown an exception''
rescue Exception
user = User.new;
user.id_prod_peer = @ppid;
user.save!;
user.reload;
end
if user == nil
user = User.new;
user.id_prod_peer = @ppid;
user.nick_name = '' ''
user.save!;
user.reload;
end
params[:id] = user.id
# set the cookie with the id
set_uid use...