From a3e26005fe00abe8836ba5dcdd1b9887ae6b1c27 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 27 Apr 2015 18:06:59 +0200 Subject: on the way of email sending --- LINKS | 7 ++++++- src/user.cpp | 4 ++++ src/user_content.hpp | 1 + templates/confirm_register.tmpl | 7 ++++++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/LINKS b/LINKS index 3d68afd..a575abf 100644 --- a/LINKS +++ b/LINKS @@ -11,4 +11,9 @@ https://github.com/allan-simon/tatoebacpp captcha generator (standalone, sweat, no Imagemagick or fonts needed): http://brokestream.com/captcha.html -http://www.cthulhulives.org/toybox/PROPDOCS/PropFonts.html \ No newline at end of file +http://www.cthulhulives.org/toybox/PROPDOCS/PropFonts.html + +SMTP: + +https://www.cs.auckland.ac.nz/~pgut001/cryptlib/download.html +http://sourceforge.net/projects/libquickmail/ diff --git a/src/user.cpp b/src/user.cpp index dddde30..5b53416 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -202,6 +202,8 @@ register_user_form::register_user_form( apps::strusCms &cms ) password.error_message( "Your password is illegal" ); password2.message( "Your password (again)" ); password2.error_message( "Your password doesn't match" ); + email.message( "Email" ); + email.error_message( "Your email address is not valid" ); captcha.message( "Enter the correct captcha" ); captcha.error_message( "Captcha didn't match" ); submit.value( "Register user" ); @@ -209,12 +211,14 @@ register_user_form::register_user_form( apps::strusCms &cms ) add( username ); add( password ); add( password2 ); + add( email ); add( captcha ); add( submit ); username.non_empty( ); password.non_empty( ); password2.non_empty( ); + email.non_empty( ); captcha.non_empty( ); } diff --git a/src/user_content.hpp b/src/user_content.hpp index e86e2fd..756f314 100644 --- a/src/user_content.hpp +++ b/src/user_content.hpp @@ -24,6 +24,7 @@ struct register_user_form : public cppcms::form { cppcms::widgets::text username; cppcms::widgets::password password; cppcms::widgets::password password2; + cppcms::widgets::text email; cppcms::widgets::text captcha; cppcms::widgets::submit submit; diff --git a/templates/confirm_register.tmpl b/templates/confirm_register.tmpl index 8b41290..820f6f4 100644 --- a/templates/confirm_register.tmpl +++ b/templates/confirm_register.tmpl @@ -14,9 +14,14 @@ <% form as_table confirm_register %> - + +
If you entered the correct code, you can try to log in.
+
+ If you don't get a code via email, contact the webmaster of this + site. +
<% end template %> <% end view %> -- cgit v1.2.3-54-g00ecf