Jump to content

what field marks a member as 'validating'?

Featured Replies

Posted

can anyone tell me what database table & field is flagged in some manner to identify that user as a not-yet-validated user?

I've just looked at the fields of core_members for both a registered and validating member, and there wasn't anything that jumped out at me as different.

Thanks.

User must have a record on core_validating table.

  • Author

thank you very much, I hadn't spotted there was a validating table. :)

  • Author

So the next question is...

Is there any way of returning the validating flag with the IPS framework? In the same way that

\IPS\Member::loggedIn()->member_id;

.. will return the member_id?

Why would you do that ?

IIRC,one way is change their email and make them confirm it ? In this case the user would be required to validate it again.

  • Author
11 minutes ago, Adriano Faria said:

Why would you do that ?

I don't want to validate them via the IPS framework, I want to know *IF* they're validating or not via that framework.

I use the IPB logins for some stuff away from the IPB install I have, on the main part of my (custom coded) website for competitions and the like - and I don't want validating users to be able to enter the competitions (which they can do at the moment) - so I need to look to see if they're validating. I could just query the validating table, but i'd prefer to use the right framework code if possible.

Actually there's a bitwise column on core_members that stores, among other things, the VALIDATING status: members_bitoptions:

\IPS\Member::loggedIn()->members_bitoptions['validating']
  • Author

I saw a reference to that on one of the doc pages, tho it suggests it's for validating a member rather than finding out if their status is validating.

I'll give it a go tho, and see what it returns, thanks.

  • Author

yep, that works. :)

It returns '1' if validating, and '0' if not.

 

Thanks for your help Adriano.

  • Author
33 minutes ago, dancingbear said:

It returns '1' if validating, and nothing if not.

Correction:

it returns '0' if not validating.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.