drupal 7 - Content type form template -
i drupal form displayed if variable matches in list of 1 time passwords. is, user emailed url drupal form contains 1 time password , if valid password can submit drupal form.
i don't know how you'd moderate one-time, seemingly random urls, create content type password field denote, send url password whoever want access , insert in template:
example url: mysite.com/form?key=1234567
if(isset($_get['key']) && $_get['key'] == render($content['field_password'])) { //do whatever here } else { print 'you not have access.'; }
if doesn't cut it, log in 1 time module allows send 1 time login urls site, terminate account after period of time.
Comments
Post a Comment