• Welcome to PHPVIBE Forums. Please log in.

new user create method and is_exist_user method

Started by Mohammadreza,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MohammadrezaTopic starter

i want to implement otp by mobile number and need one of two?

1- is there any plugin or open source github project that implement otp on php vibe

2- is there any method work like this sample? i need username_exist() method and create_method() function and want to know how can i use them.

$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.');
}
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

 

Similar topics (7)

[ Video Sharing CMS v4 ] wrong username and password

Started by ASDF


Replies: 7
Views: 2214

[ Video Sharing CMS v4 ] How do I get: Facebook User Emails

Started by megaman79


Replies: 9
Views: 1468

[ Video Sharing CMS v4 ] HELP ME!!! About users page

Started by AHStudioOfficial


Replies: 4
Views: 1996

BUG# user Channel shows 3 more videos but not able to click (needs to be link)

Started by spirog


Replies: 1
Views: 1771

[ Video Sharing CMS v4 ] How do I create a custom page/graphic to appear when I take the site offline?

Started by PHPClient


Replies: 1
Views: 1956

[ Video Sharing CMS v4 ] Exclude a category from Newest Videos (Block)

Started by OliverJ


Replies: 3
Views: 1198

[ Video Sharing CMS v4 ] How 2 ? Only registred users can watch Videos ?

Started by ipeci


Replies: 9
Views: 1777