X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1e98eb99504836794fbfce1cacc6bce93a8e4983..4bc8fcf5b499a490db044fba936e01384d01d803:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index fd58145c4..f2378f36d 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -14,7 +14,8 @@ class UserController < ApplicationController @user = User.new(params[:user]) @user.data_public = true - + @user.description = "" if @user.description.nil? + 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."