Advertisement:

Author Topic: Registration with admin's mail is allowed  (Read 1093 times)

rzk

  • Guest
Registration with admin's mail is allowed
« on: January 19, 2012, 03:38:11 am »
I discovered is possible to register a new user with the admin's mail if the admin is not registered as an user.

I mean: my admin mail: admin@mysite.com, so a new user can use that mail to register if I'm (admin) not registered as user. So to fix that I have registered as user (easy way). But I was wondering if is possible to modify /osclass2.3.5/register.php in some way to not allow that and show the same message as a user can see when is trying to register with a existing mail ("The specified e-mail is already in use")

I added new lines:
             //registro no válido en el caso que el usuario quiera registrarse con el mail del admin
             break;
             case 8: osc_add_flash_warning_message( _m('The specified e-mail is already in use')) ;
             $this->doView('user-register.php') ;

But I think I have to modify also /oc-includes/osclass/UserActions.php adding a new "if"

Could you help?
Thanks

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: Registration with admin's mail is allowed
« Reply #1 on: January 19, 2012, 01:20:35 pm »
@rzk, I don't see any problem with that, maybe an admin need to post items as user. Are different loggins for admins and users.
Regards

rzk

  • Guest
Re: Registration with admin's mail is allowed
« Reply #2 on: January 19, 2012, 03:38:29 pm »
Maybe you are right, I didn't think about that.