Displaying 7 results from an estimated 7 matches for "user_hash".
2010 Jul 31
4
Exception: can't dup Symbol
...#39;'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}
user_hash.merge!(options)
post :login, :user => :user_hash
assert logged_in?
end
I can''t isolate the error, can anybody throw some light on it?
Thanks a lot in advance!
--
Posted via http://www.ruby-fo...
2010 Jan 26
1
Why does UserSession.find return nil when using user_credentials = single_access_token?
...n very thorough in looking through the documentation, but I
must be missing something. What is it that I''m neglecting?
class UsersController < ApplicationController
def update
# params[:user_credentials].inspect shows the correct
''xxxSingle_Access_Tokenxxx''
user_hash = RegisteredUserSession.find.record
user = RegisteredUser.find(user_hash)
user.update(params[:user])
user.save
respond_to do |format|
format.json { head :ok }
end
end
private
def single_access_allowed?
true
end
end
class UserSession < Authlogic::...
2015 Mar 04
0
Rebuilding SIS attachment links from log
...t;s|.*$ATTACHMENT_STORAGE_BASE||"
ATTACH_LINE=$(echo "$ERR" | sed "$ATTACH_LINE_FILTER")
# Now extract the aa/bb/ prefix, the base attachment file name, and user hash
CATEGORY_PATH="${ATTACH_LINE:1:5}"
BASE_HASH="${ATTACH_LINE:7:40}"
USER_HASH="${ATTACH_LINE:48:32}"
ATTACH_SOURCE="$ATTACHMENT_STORAGE_BASE/$CATEGORY_PATH/$HASH_FOLDER/$BASE_HASH"
ATTACH_TARGET="$ATTACHMENT_STORAGE_BASE/$CATEGORY_PATH/$BASE_HASH-$USER_HASH"
# There appear to be duplicate lines - so to try to filter some out.
i...
2006 Mar 29
6
Simply Getting Post Params
I am a complete Rails newbie and am trying to understand how I can
simply get the data from a password field in a form that is not mapped
to a field in the database.
The scenario is this. I have a User model that is mapped to a table
users with the following fields: username, email_address, password and
join_dt. Following pretty closely to the login section in the Agile Web
Development with
2015 Mar 03
3
Rebuilding SIS attachment links from log
This seems simple enough...I'm just not script wizard. If someone can
throw together a starting point I can test and tweak it from there. It
seems to me:
1. Read /var/mail/mail.err or specified logfile
2. For each "failed:
read(/var/mail/attachments/aa/bb/attachmentHash-userHash" line,
a. Confirm /var/mail/attachments/aa/bb/hashes/attachmentHash exists
i. If
2011 Apr 20
1
Omniauth facebook authentication failure
...when ''facebook''
if user.save
user.profile = Profile.new
user.profile.picture_url =
"https://graph.facebook.com/"+omniauth[''uid'']+"/picture"
# user.profile.location =
omniauth[''extra''][''user_hash''][''location''][''name'']
# user.profile.gender = omniauth[''extra''][''user_hash''][''gender'']
#save users profile
if user.profile.save
flash[:notice] = "Signed in with "+omniau...
2011 Aug 31
1
[PATCH] Allow verification of user's hash in doveadm-pw
...ew password:
Retype new password:
reverse password verification check failed
FYI the word used for those test cases was "password".
Regards,
___
Jimmy Thrasibule <spack.world at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user_hash-doveadm-pw.diff
Type: text/x-patch
Size: 1708 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20110901/ce62b6bb/attachment-0004.bin>