@@ -10,11+10,11 @@ class UserController < ApplicationController
def save
@title = 'create account'
@user = User.new(params[:user])
def save
@title = 'create account'
@user = User.new(params[:user])
- @user.set_defaults
if @user.save
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 :-)<br>Please note that you won't be able to login until you've received and confirmed your email address."
flash[:notice] = "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)<br>Please note that you won't be able to login until you've received and confirmed your email address."
- Notifier::deliver_signup_confirm(@user)
+ Notifier::deliver_signup_confirm(@user, token)
redirect_to :action => 'login'
else
render :action => 'new'
redirect_to :action => 'login'
else
render :action => 'new'
@@ -33,8+33,8 @@ class UserController < ApplicationController