Compare form input with user password in drupal 7 I'm trying to compare the user password from different databases so users of other drupal sites can also login.
I'm switching from the main database to other databases and then trying to compare the passwoord input field to the stored hash value.

I did not found a answer on this site maybe because my situation is a bit different.

I did found this question and tried user_check_password() and user_hash_password()
 returns nothing and user_hash_password returns a new hash every time I run it so I don't think I can use that to compare that to the stored value in the database.
If I copy the user from the other database and save it to the main database user_check_password() does work. While I don't like this it does work… 

If you have a better answer please submit it.