Fixes: #2669 SSL check in password recovery was in the wrong place