X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a1378a6bd4cdeca537856650e6ea7321ae6eca26..e48cbc6a5f54a0e18dc581ccbac3b13284313125:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 5d113910d..e998e83c6 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -11,6 +11,8 @@ class UserController < ApplicationController @title = 'create account' @user = User.new(params[:user]) + @user.data_public = true + if @user.save token = @user.tokens.create flash[:notice] = "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)
Please note that you won't be able to login until you've received and confirmed your email address."