phpvibe cms-无法自定义新的用户创建方法

时间:2019-09-08 09:13:38

标签: customization one-time-password createuser phpvibe

我想通过手机号码实现otp,并且需要这两种解决方案之一?

1-是否存在在phpvibe上实现otp的任何插件或开源github项目

2-有什么方法可以像本示例一样工作?我需要username_exist()方法和create_method()函数,并想知道如何使用它们。在phpvibe中

简单:如何在phpvibe中自定义注册

类似的东西

$user_id = username_exists( $user_name );
if ( !$user_id and email_exists($user_email) == false ) {
   $random_password = wp_generate_password( $length=12, $include_standard_special_chars=false );
   $user_id = wp_create_user( $user_name, $random_password, $user_email );
} else {
   $random_password = __('User already exists.  Password inherited.');
}

我需要在phpvibe中找到类似于is_exist_user方法的功能

0 个答案:

没有答案
相关问题