+ else
+ @user = User.new(params[:user])
+
+ @user.visible = true
+ @user.data_public = true
+ @user.description = "" if @user.description.nil?
+ @user.creation_ip = request.remote_ip
+ @user.locale = Language.find_by_code(I18n.locale.to_s)
+ @user.locale = Language.find_by_code("en") if @user.locale.nil?
+
+ if @user.save
+ flash[:notice] = I18n.t('user.new.flash create success message')
+ Notifier.deliver_signup_confirm(@user, @user.tokens.create)
+ redirect_to :action => 'login'
+ else
+ render :action => 'new'
+ end