How to compare Password in moodle 2.9
(Password which user entered with database )
If you mean in the mdl_user table; use the function validate_internal_user_password() which is at https://github.com/moodle/moodle/blob/master/lib/moodlelib.php#L4377
i am making one api in which i have requirement to compare the user enter password compare with the database password .
we can say check whether user enter correct password or not
in my config file of moodle 2.9 there is no salt .....
i also user
but it return me nothing
oh ... got it
i am using the wrong pass thats why it returning nothing
when i use correct one it returns "1"