elsif !token || token.expired?
flash[:error] = t("users.confirm.unknown token")
redirect_to :action => "confirm"
elsif !token || token.expired?
flash[:error] = t("users.confirm.unknown token")
redirect_to :action => "confirm"
token = UserToken.find_by(:token => session[:token])
if user.nil? || token.nil? || token.user != user
token = UserToken.find_by(:token => session[:token])
if user.nil? || token.nil? || token.user != user