Hello Developers,
I was creating a special tag to check if a string is the same as the hash of the password of the user (which was collected from the database). As I tried this it's kinda hard to check this. I tried to use the org.mmbase.security.implementation.cloudcontext.builders.Users.encode function but this one was protected. (I used the following code, don't know if it's the correct way). Is there a special reason this was protected?
//code snippet
org.mmbase.module.core.MMBase mmb = (org.mmbase.module.core.MMBase) org.mmbase.module.Module.getModule("mmbaseroot");
org.mmbase.security.implementation.cloudcontext.builders.Users encoder = (org.mmbase.security.implementation.cloudcontext.builders.Users) mmb.getBuilder("mmbaseusers");
I solved it using the md5 transformer, but if the password hashing method is changed by a admin my code doesn't get the correct transformer to hash the passwords. So I would like to use the Users.encode function. Is this possible, should I use an other function to encode the passwords or do I have to implement my own method of changing hashes?
Greets, Ids Braam _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
