Lately I got a query to debug the disappearance of events in an existing ownCloud installation.
To reproduce the error in my local development environment, the customer has send me the MySQL database and his config.php.
As I need to login as an existing user, i have to reset the password, but first change the email of the user.
You can use phpMyAdmin to change the email, just go to the table "oc_preferences", search for the userid, the appid "settings" and the configkey "email". Now set "configvalue" to your email. This makes sure that the password reset does not send an email to the user. If there is no email set, please insert one, otherwise the reset does not work.
Now open the file "owncloud/core/lostpassword/controller.php" and insert this debug code below line 60:
error_log(var_export($msg, true));
Open up your browser and reset the password of the user, now the link to set a new passwordin should appear in your log.
Once reseted, you can copy over the password hash to other user in the table "oc_users".
Hope this helps.
#development #owncloud #password #portknox #reset