attr_accessible :username, :password, :password_confirmation, :remember_me
renders nothing (password nil)
however current_user.username still resolves to the correct name
Sorry about the lack of info, my concept of what was wrong behind the scenes changed so I will have to get more info.
Ok, backing up a little, i needed the password to compliment issue #94
I got it work applying the patch and
t.string :password, :null => false, :default => ""
#t.string :encrypted_password, :null => false, :default => ""
from model.rb, removed the
@password = new_password
and to line 95 added
resource.password = attributes[:password] if resource.password.nil? and !attributes[:password].nil?
which gave me access to the password as current_user[:password]
then could use
current_user.get_ldap_param(current_user.login_with, current_user[:password], 'mail')
Wouldn't that store the clear password in the database though ?
Yes it would. Why would you want to persist the password? Why would you even want to display it? I can't see a sane use case for this, so I'm closing it.
"I can see a sane use case for this" - there isn't, I accidentally reopened this, it was a "fix" for something else designed wrong, and became a "forest for the trees" type deal, sorry about that
No worries :)