我想通过手机号码实现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方法的功能