*

Miller

  • ****
  • 141 posts
Post ad without email Id
« 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

*

Miller

  • ****
  • 141 posts
Re: Post ad without email Id
« Reply #1 on: February 03, 2019, 02:46:52 PM »
Anyone know do this

*

MB Themes

Re: Post ad without email Id
« Reply #2 on: February 03, 2019, 08:55:04 PM »
Check our phone number login plugin.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots