|
|
@ -79,11 +79,12 @@ class CnmoocsService
|
|
|
|
|
|
|
|
|
|
|
|
mail = params[:email] || c_user.generate_email
|
|
|
|
mail = params[:email] || c_user.generate_email
|
|
|
|
name = params[:name] || "好大学_#{params[:userName]}"
|
|
|
|
name = params[:name] || "好大学_#{params[:userName]}"
|
|
|
|
|
|
|
|
login = generate_login('m')
|
|
|
|
create_params = {
|
|
|
|
create_params = {
|
|
|
|
lastname: name,
|
|
|
|
lastname: name,
|
|
|
|
mail: mail,
|
|
|
|
mail: mail,
|
|
|
|
mail_notification: mail,
|
|
|
|
mail_notification: mail,
|
|
|
|
login: generate_login('m'),
|
|
|
|
login: login,
|
|
|
|
password: OauthController::DEFAULT_PASSWORD,
|
|
|
|
password: OauthController::DEFAULT_PASSWORD,
|
|
|
|
certification: 1
|
|
|
|
certification: 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|