Allow password to contain spaces only.
Merge pull request #16412 from yevhene/master

Fix in has_secure_password for passwords containing only spaces.