pull/14526/head
Alberto Romeu 6 years ago
parent 1ad919e077
commit 26d47a6898

@ -47,7 +47,7 @@ module CartoDB
user = user_class.new
user.username = attributes[:username] || unique_name('user')
user.email = attributes[:email] || unique_email
user.password = "#{(attributes[:password] || user.email.split('@').first)}000"
user.password = attributes[:password] || user.email.split('@').first
user.password_confirmation = user.password
user.admin = attributes[:admin] == false ? false : true
user.private_tables_enabled = attributes[:private_tables_enabled] == true ? true : false
@ -132,7 +132,7 @@ module CartoDB
user = create_user(
username: username,
email: "#{username}@example.com",
password: username,
password: "#{username}000",
private_tables_enabled: true,
database_schema: organization.nil? ? 'public' : username,
organization: organization,

Loading…
Cancel
Save