title: Grails Spring Security Plugin Password issue
body: <p>I have successfully migrated to Spring Security plugin from acegi plugin.  Creating a new user works fine. I can login.</p>
  
  <p>But in the database, I have lot of users created using acegi's <code>authenticateService.encodePassword</code>. So I can't login using those old username and password. I guess its the MD5 or SHA1 encoding algorithm issue. </p>
  
  <p>Just wanted to know, how to make it to work without resetting password. I tried setting    <code>grails.plugins.springsecurity.password.algorithm="MD5"</code>, but no luck. </p>
  
  <p>Any suggestions?</p>
  
  <p>package auth</p>
  
  <pre><code>import java.util.Set;
  import auth.Role
  
  /**
   * User domain class.
   */
  class User  implements Serializable {
      static transients = ['pass','getAuthorities']
      static hasMany = [authorities: Role]
      static belongsTo = Role
  
      transient springSecurityService
  
      static mapping = {
          table 'users' // USER not a valid table name in oracle
      }
  
      /** Username */
      String username
      /** User Real Name*/
      String userRealName
      /** MD5 Password */
      String passwd
  
      String password
  
      /** enabled */
      boolean enabled
  
      String email
      boolean emailShow
  
      /** description */
      String description = ''
  
      /** plain password to create a MD5 password */
      String pass = '[secret]'
  
      boolean accountExpired 
      boolean accountLocked 
      boolean passwordExpired  
  
      String toString() {
          return userRealName
      }
  
      static constraints = {
          username(blank: false, unique: true)
          userRealName(blank: false)
          passwd(blank: false)
          password(blank: false)
          enabled()
          description(nullable:true)
      }
  
      /*Set&lt;Role&gt; getAuthorities() {
          Role.findAllByUser(this).collect { it.role } as Set
      }*/
  
      def beforeInsert() {
          encodePassword()
      }
  
      def beforeUpdate() {
          if (isDirty('password')) {
              encodePassword()
          }
      }
  
      protected void encodePassword() {
          password = springSecurityService.encodePassword(password,null)
      }
  
  
  }
  </code></pre>