title: Devise use an alternative to password
body: <p>I'm currently working on a project that needs a kinda special authentication. I got a list of users which includes their membership number and their firstname and lastname.</p>
  
  <p>I'm using devise for authentication and I'd like to authenticate with that number plus a combination of their first and lastname like:</p>
  
  <pre><code>01272726
  Bruce Wayne
  </code></pre>
  
  <p>I've switched from the email authentication to the uuid (membership number) but I can't figure out how I could replace the password with the name.</p>
  
  <p>I thought about generating the password for them when uploading the users to the database but idk how to encrypt it. :/</p>
  
  <p>I hope somebody can help me out. Thank you!</p>