From 9f7a5e8e5fb4522f08c9970875bec7102ce87acc Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Wed, 10 Jul 2019 14:42:49 +0800 Subject: [PATCH] fixbug --- app/controllers/welcome_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index cfdf5b68..548e0ab3 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -248,7 +248,7 @@ class WelcomeController < ApplicationController login = account_before + list[0] if User.where(:login => login).blank? us = UsersService.new - user = us.register mail: mail, password: '12345678' + user = us.register phone: mail, password: '12345678' @user = user @user.login = login @se = @user.extensions