Sponsored Content
The Lounge What is on Your Mind? New Registration Modal for UNIX.COM Post 303028872 by Neo on Wednesday 16th of January 2019 11:10:13 PM
Old 01-17-2019
Quote:
Originally Posted by joeyg
I did a little testing of various scenarios, and perhaps no easy way around the 'captcha', but if I pick a username already in use (but do not know this) and go through all the steps including the captcha... then the computer tells me the username is taken, I must go through the captcha all over again. It does not remember that I am human.
As I said, maybe a side-effect of the 'captcha'; but I sense people picking usernames already taken and thus having to do it all over again each time.
OK... I added new code to check the username during registration, adding some color checks and dialog:

Image

Image
 

6 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Please remove my registration and last post from Unix Forums

Hi I obviously shouldn't have registered with this website for help, please can you remove my registration and last post. It has now been sorted elsewhere. Thanks (0 Replies)
Discussion started by: skylark167
0 Replies

2. Post Here to Contact Site Administrators and Moderators

How to delete registration please?

How do I delete my registration please? (1 Reply)
Discussion started by: amaitland
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Need help with forum registration

i can not register, please help me (1 Reply)
Discussion started by: friender@mail
1 Replies

4. Forum Support Area for Unregistered Users & Account Problems

Problem with registration

When I'm trying to register it says that my e-mail adress )is banned by administrator. Why? Thanks PS The same problem occurs with other 2 adresses I have (1 Reply)
Discussion started by: Mihail
1 Replies

5. Forum Support Area for Unregistered Users & Account Problems

Registration request.

Hi, i got several questions regarding Solaris 10 configuration which i would like to ask here. Unfortunately Russia is blacklisted so I cannot register the normal way. My IP is: 5.19.nnn.nnn email: <removed> Thank you. (5 Replies)
Discussion started by: nongrato
5 Replies

6. Shell Programming and Scripting

Character first registration

friends I have the following code that works perfect while read linea do largo=${#linea} echo "largo es///////////: $largo " if then echo "Longitud De Registro Invalida" echo " $linea > ERROR DE LONGITUD" >> ... (2 Replies)
Discussion started by: tricampeon81
2 Replies
HTML::FormHandler::TraitFor::Captcha(3pm)		User Contributed Perl Documentation		 HTML::FormHandler::TraitFor::Captcha(3pm)

NAME
HTML::FormHandler::TraitFor::Captcha - generate and validate captchas VERSION
version 0.40013 SYNOPSIS
A role to use in a form to implement a captcha field. package MyApp::Form; use HTML::FormHandler::Moose; with 'HTML::FormHandler::TraitFor::Captcha'; or my $form = MyApp::Form->new( traits => ['HTML::FormHandler::TraitFor::Captcha'], ctx => $c ); Needs a context object set in the form's 'ctx' attribute which has a session hashref in which to store a 'captcha' hashref, such as is provided by Catalyst session plugin. METHODS
get_captcha Get a captcha stored in "$form->ctx->{session}" set_captcha Set a captcha in "$self->ctx->{session}" captcha_image_url Default is '/captcha/image'. Override in a form to change. sub captcha_image_url { '/my/image/url/' } Example of a Catalyst action to handle the image: sub image : Local { my ( $self, $c ) = @_; my $captcha = $c->session->{captcha}; $c->response->body($captcha->{image}); $c->response->content_type('image/'. $captcha->{type}); $c->res->headers->expires( time() ); $c->res->headers->header( 'Last-Modified' => HTTP::Date::time2str ); $c->res->headers->header( 'Pragma' => 'no-cache' ); $c->res->headers->header( 'Cache-Control' => 'no-cache' ); } AUTHOR
FormHandler Contributors - see HTML::FormHandler COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 HTML::FormHandler::TraitFor::Captcha(3pm)
All times are GMT -4. The time now is 11:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy