vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Finding validated users (https://vborg.vbsupport.ru/showthread.php?t=57318)

Ville 09-22-2003 04:37 PM

Finding validated users
 
On my site some other features [in addition to the board] are available only to those users who have registered on the bulletin board. Currently, anyone who is registered can access them (say, chat, for example), but I'd like to allow only those users access the additional services who are registered AND validated (i.e. who have responded to the validation email and whom I subsequently have approved as a new user).

Currently I create MD5 hash from the password the user has entered, and then compare it to the result of...
SELECT password FROM user WHERE username="$boardname";

So my question is... where is the validation information stored?

Oh, I'm using 2.3.2 'til the final 3.0 is released.

Velocd 09-22-2003 11:48 PM

Hold up, all you need to compare is the usergroup. Users who are not validated by email are automatically placed in their own usergroup.

So, go to your admin-cp, find out that usergroup id, and then in whatever feature page you want the check to be present, just run a query to ensure that the usergroup of the user is not of the awaiting-email-confirmation group.

Ville 09-23-2003 03:35 AM

Thanks much! :)


All times are GMT. The time now is 01:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00990 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete