package be.cytomine.security

class User extends SecUser {

  String firstname
  String lastname
  String email
  Date dateCreated

  static constraints = {
    firstname blank : false
    lastname blank : false
    email blank : false
    dateCreated blank : false
  }


}

package be.cytomine.security

class User extends SecUser {

  String firstname
  String lastname
  String email
  Date dateCreated

  static constraints = {
    firstname blank : false
    lastname blank : false
    email (blank : false, email:true)
    dateCreated blank : false
  }


}

Add email constraint for user email
Add email constraint for user email

