[SOLVED] Where is email verification handled?

Discussion forum for MOD Writers regarding MOD Development.
blakeburns
Registered User
Posts: 18
Joined: Thu Mar 13, 2014 10:47 pm

[SOLVED] Where is email verification handled?

Post by blakeburns »

Hey guys,

I am trying to figure out where in the phpbb php code the email verification is handled. I am trying to modify it slightly for my own needs and need to know exactly where it happens.

Any ideas?
Last edited by blakeburns on Wed May 27, 2015 8:46 am, edited 1 time in total.
blakeburns
Registered User
Posts: 18
Joined: Thu Mar 13, 2014 10:47 pm

Re: Where is email verification handled?

Post by blakeburns »

This is PHPBB 3.0 btw. Hope someone knows where this is handled.
User avatar
AmigoJack
Registered User
Posts: 6127
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Where is email verification handled?

Post by AmigoJack »

The URI to activate an account (which is what the account owner gets as e-mail) is created in /includes/ucp/ucp_register.php, whereas processing such a request is handled in /includes/ucp/ucp_activate.php. For more precision you need to tell what you want to modify exactly.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
blakeburns
Registered User
Posts: 18
Joined: Thu Mar 13, 2014 10:47 pm

Re: Where is email verification handled?

Post by blakeburns »

Thanks! I think I found it in the ucp_activate.php

If we aren't updating the password, its a new user activating and 'user_active_flip' below is what sets them from inactive to active. Need to do some database stuff when a user activates so I can add my stuff just below that.

Code: Select all

if (!$update_password)
		{
			include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx);

			user_active_flip('activate', $user_row['user_id']);

Let me know if anything I said was inaccurate.
User avatar
AmigoJack
Registered User
Posts: 6127
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Where is email verification handled?

Post by AmigoJack »

Fine so far, but...
blakeburns wrote:when a user activates
...this is not bound to happen only once after registration. But I guess you don't mean it literally and not those cases where users get re-activated.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
blakeburns
Registered User
Posts: 18
Joined: Thu Mar 13, 2014 10:47 pm

Re: Where is email verification handled?

Post by blakeburns »

Ah so this code gets executed when a user re-activates or get de-activated as well? I guess I will have to check to make sure this is the first time activation.
User avatar
AmigoJack
Registered User
Posts: 6127
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Where is email verification handled?

Post by AmigoJack »

No. I said that i.e. user_active_flip() is used elsewhere.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
blakeburns
Registered User
Posts: 18
Joined: Thu Mar 13, 2014 10:47 pm

Re: Where is email verification handled?

Post by blakeburns »

Gotcha. I can't modify that function itself but I can just place the code I need just below it. That should work for me. Gonna say this is solved. Thanks for the help!

Return to “[3.0.x] MOD Writers Discussion”