gitlabhq/gitlabhq — pull request #5436 by Seed-Of-Hate (2013-10-24 17:44:39+00:00)
Title: Fix for issue #5431

See for reference: https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb

Lines 70-79 - the validation step is skipped under certain circumstances. And ```:generate_password``` is called as ```before_validation``` handler.