fix IPv6 email regex, get ready for token registration

This commit is contained in:
jomo
2014-05-04 23:03:11 +02:00
parent 2ec5238e37
commit 4ee8ce36f1
3 changed files with 3 additions and 4 deletions

View File

@@ -90,8 +90,7 @@ class UsersController < ApplicationController
@user.uuid = user_profile["id"]
@user.ign = user_profile["name"] # correct case
# TODO: uncomment when MC part works
if true # validate_token(@user.uuid, @user.email, params[:registration_token])
if true validate_token(@user.uuid, @user.email, params[:registration_token])
@user.last_ip = request.remote_ip # showing in mail
if @user.save
session[:user_id] = @user.id