Se need to import a large user table to a Craft installation. Unfortunately, the passwords in the imported data are SHA1 encrypted (and salted).
What is the best way to enable the login of the users?
We thought that we add an extra column to the table which defined if the hash is standard or SHA1.
If a user logs in where the password is SHA1, then we check if it's the correct password and change it to the standard hash.
This would be the most comfortable way for the existing users.
Question: Is this a possible solution, especially is it possible to hook up into the login process to create the logic for the check.
Or would you recommend other solutions?