Update Login Module.

- Updated routes relative to /account/
     - Updated emails with template support.
     - Updated cookie to support the new route.
     - Updated smarty block templates to use the new path.
This commit is contained in:
jvelilla
2015-06-09 19:44:52 -03:00
parent e188625c43
commit f652aa8a15
17 changed files with 393 additions and 107 deletions

View File

@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Activation</title>
<meta name="description" content="Activation">
<meta name="author" content="ROC CMS">
</head>
<body>
<p>Thank you for registering at <a href="$host">ROC CMS</a></p>
<p>To complete your registration, please click on this link to activate your account:<p>
<p><a href="$link">$link</a></p>
<p>Thank you for joining us.</p>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>New Password</title>
<meta name="description" content="New Password">
<meta name="author" content="ROC CMS">
</head>
<body>
<p>You have required a new password at <a href="...">ROC CMS</a></p>
<p>To complete your request, please click on this link to genereate a new password:<p>
<p><a href="$link">$link</a></p>
</body>
</html>

View File

@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>New Activation</title>
<meta name="description" content="New Activation token">
<meta name="author" content="ROC CMS">
</head>
<body>
<p>You have request a new activation token at<a href="...">ROC CMS</a></p>
<p>To complete your registration, please click on this link to activate your account:<p>
<p><a href="$link">$link</a></p>
<p>Thank you for joining us.</p>
</body>
</html>

View File

@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome</title>
<meta name="description" content="Welcome">
<meta name="author" content="ROC CMS">
</head>
<body>
<p>Welcome to<a href="...">ROC CMS</a></p>
<p>Thank you for joining us.</p>
</body>
</html>

View File

@@ -1,5 +1,8 @@
{
"email": "webmaster@example.com",
"subjet": "Thank you for regitering with us",
"subjet_register": "Thank you for regitering with us, activate account",
"subjet_activate": "New account ativation token",
"subjet_password": "Password Recovery!!!",
"subjet_oauth": "Welcome",
"smtp": "127.0.0.1"
}

View File

@@ -1,9 +1,6 @@
<div>
{if isset="$user"}
<h3><a href="/roc-logout">Logout</a> </h3>
{/if}
{unless isset="$user"}
<h3>Login or <a href="/roc-register">Register</a></h3>
{unless isset="$user"}
<h3>Login or <a href="/account/roc-register">Register</a></h3>
<div>
<div>
<form action method="POST">
@@ -24,12 +21,12 @@
<div>
<div>
<p>
<a href="/new-password">Forgot password?</a>
<a href="/account/new-password">Forgot password?</a>
</p>
</div>
</div>
{/unless}
<div>
<a href="/login-with-google"><img src="http://qpleple.com/img/post-how-to-make-people-login-into-your-website-with-their-google-account/signin-google-3.png"></a>
<a href="/account/login-with-google"><img src="http://qpleple.com/img/post-how-to-make-people-login-into-your-website-with-their-google-account/signin-google-3.png"></a>
</div>
{/unless}
</div>

View File

@@ -1,5 +1,5 @@
<div>
<form action="/new-password" method="post">
<form action="/account/new-password" method="post">
<fieldset>
<legend>Require new password</legend>
<div>

View File

@@ -1,5 +1,5 @@
<div>
<form action="/reactivate" method="post">
<form action="/account/reactivate" method="post">
<fieldset>
<legend>Reactivate Form</legend>
<div>

View File

@@ -1,5 +1,5 @@
<div>
<form action="/roc-register" method="post">
<form action="/account/roc-register" method="post">
<fieldset>
<legend>Register Form</legend>
<div>

View File

@@ -1,5 +1,5 @@
<div>
<form action="/reset-password" method="post">
<form action="/account/reset-password" method="post">
<fieldset>
<legend>Generate New Password Form</legend>
<div>