mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-02-05 07:51:18 +00:00
Set email on empty
This commit is contained in:
parent
e1747cac83
commit
1c59cac569
1 changed files with 1 additions and 0 deletions
|
@ -359,6 +359,7 @@ class User < ActiveRecord::Base
|
||||||
unless profile&.present?
|
unless profile&.present?
|
||||||
self.build_profile
|
self.build_profile
|
||||||
end
|
end
|
||||||
|
self.email = "%s@ensl.org" % cleanup_string(username) if email.blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate_password
|
def generate_password
|
||||||
|
|
Loading…
Reference in a new issue