Worlflow 1- Register 1.1 Create a new temporal user 1.2 Email to the new User 1.3 Email to Web Master 2 Web Master Review th Account Application 2.1 Accept and Send an confirmation email to the user and remove the temporal user 2.2 Reject the application send a rejection email to the user and remove the temporal Added a new table to save temporal users to review their Application to the site. Updated Register Form with an new input Application and Recaptcha validation. Updated Emails templates and messages. (TODO improve messages) Updated mails templates. Simple messages (Todo improve messages). Added a new handler to reject a user Updated existing hanlders to handler the new workflow.
62 lines
986 B
Plaintext
62 lines
986 B
Plaintext
note
|
|
description : "test application root class"
|
|
date : "$Date: 2015-01-14 15:37:57 -0300 (mi. 14 de ene. de 2015) $"
|
|
revision : "$Revision: 96458 $"
|
|
|
|
class
|
|
APPLICATION
|
|
|
|
inherit
|
|
ARGUMENTS
|
|
|
|
create
|
|
make
|
|
|
|
feature {NONE} -- Initialization
|
|
|
|
make
|
|
-- Run application.
|
|
do
|
|
test_invalid_input
|
|
test_missing_input
|
|
test_missing_key_input
|
|
end
|
|
|
|
|
|
test_invalid_input
|
|
-- invalid-input-response
|
|
local
|
|
l_captcha: RECAPTCHA_API
|
|
do
|
|
create l_captcha.make ("","234")
|
|
check
|
|
not_true:not l_captcha.verify
|
|
end
|
|
end
|
|
|
|
test_missing_input
|
|
-- missing-input-response
|
|
local
|
|
l_captcha: RECAPTCHA_API
|
|
do
|
|
create l_captcha.make ("key","")
|
|
check
|
|
not_true:not l_captcha.verify
|
|
end
|
|
end
|
|
|
|
test_missing_key_input
|
|
-- missing-input-response
|
|
-- invalid-input-response
|
|
local
|
|
l_captcha: RECAPTCHA_API
|
|
do
|
|
create l_captcha.make ("","")
|
|
l_captcha.set_remoteip("localhost")
|
|
check
|
|
not_true:not l_captcha.verify
|
|
end
|
|
end
|
|
|
|
end
|