password reset should be reset only when email was successfully sent
|Reported by:||matt||Owned by:|
for testing purposes i wanted to use the lost password function on a fresh piwik installation. something weird happened, so no mail was send (php-error regarding mail). then i was no longer able to access piwik because of a auto-generated new password.
maybe first send mail and then (if succesfcull) write the new password to file?