In reply to John Dee.

make use of wp-login.php, so it’s wont work if you use a custom login page.

This is a false conclusion. All properly coded custom login scripts use wp-login.php