password reset code for db auth user plugin