Jūs esateŽurnalai / Ernestas Kardzys's blog / ELGG. Howto disable email verification

ELGG. Howto disable email verification


ParašėErnestas Kardzys - 2010 Liepos 04

Last Friday I was working with the ELGG framework. I registered a user. Then the confirmation email was sent to the user, saying "press on the link below to confirm your email account". Unfortunately I didn't want to have that email. So, the question is: How to disable the email validation? The answer is very simple, just three lines of code:
$user = get_user_by_username($username_as_string); $user->enable(); set_user_validation_status($user->getGUID(), true);
After those three lines of code - the user is automatically validated :) Keep in mind: it's not secure to do like that :) So, if you know what you're doing - do it ;)

Skelbti naują komentarą

Šio laukelio turinys bus laikomas privatus ir nerodomas viešai.
  • Web puslapiu adresai ir el. pašto adresai automatiškai tampa nuorodomis.
  • Leidžiamos HTML žymės: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linijos ir paragrafai atskiriami automatiškai
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

Daugiau informacijos apie teksto formatavimą

CAPTCHA
Šis klausimas yra skirtas įsitikinti, jog jūs esate žmogus, ir sustabdyti automatinį šlamšto siuntimą.
10 + 1 =
Išspręskite šią paprastą matematinę užduotį ir įveskite atsakymą. Pvz., jei užduotis yra 1+3, įveskite 4.