diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-27 18:06:59 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-27 18:06:59 +0200 |
commit | a3e26005fe00abe8836ba5dcdd1b9887ae6b1c27 (patch) | |
tree | 8f6f89ef2212b49d8e03177094bd10ed2ef56e0d | |
parent | fa132310bf61c115907e5c237333207f308b1de4 (diff) | |
download | aCms-a3e26005fe00abe8836ba5dcdd1b9887ae6b1c27.tar.gz aCms-a3e26005fe00abe8836ba5dcdd1b9887ae6b1c27.tar.bz2 |
on the way of email sending
-rw-r--r-- | LINKS | 7 | ||||
-rw-r--r-- | src/user.cpp | 4 | ||||
-rw-r--r-- | src/user_content.hpp | 1 | ||||
-rw-r--r-- | templates/confirm_register.tmpl | 7 |
4 files changed, 17 insertions, 2 deletions
@@ -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 %> </table> </form> - + </div> + <div> If you entered the correct code, you can try to log in. </div> + <div> + If you don't get a code via email, contact the webmaster of this + site. + </div> <% end template %> <% end view %> |