Osclass Support Forums

Osclass theme support => Free themes => Topic started by: Miller on February 02, 2019, 09:13:38 AM

Title: Post ad without email Id
Post by: Miller on February 02, 2019, 09:13:38 AM
Hello,
Please help me
 
How to block registered mobile number user post ad without login


oc-includes/osclass/controller/item.php

if(!osc_is_web_user_logged_in()) {
                        $user = User::newInstance()->findByEmail($mItems->data['contactEmail']);
                        // The user exists but it's not logged
                        if(isset($user['pk_i_id'])) {
                            foreach( $mItems->data as $key => $value ) {
                                Session::newInstance()->_keepForm($key);
                            }
                            osc_add_flash_error_message( _m('A user with that email address already exists, if it is you, please log in'));
                            $this->redirectTo(osc_user_login_url());
                        }
                    }

'A user with that MOBILE NUMBER already exists, if it is you, please log in[/b
Title: Re: Post ad without email Id
Post by: Miller on February 03, 2019, 02:46:52 PM
Anyone know do this
Title: Re: Post ad without email Id
Post by: MB Themes on February 03, 2019, 08:55:04 PM
Check our phone number login plugin.