summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-11 00:10:58 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-11 00:10:58 +0200
commitf953eba8d7c9e362fd18a311367a6fc7b9b9cac4 (patch)
treecbd12a45127c357f7fb4e774a43f76093e9d3f42 /application
parent23c4a7155fc729369a2800793fdc2588ad1511ce (diff)
Show confirmation after login
Some users might expect confirmation emails, but we don't send those (yet?). Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/controllers/user.php4
-rw-r--r--application/views/user/registered.php3
2 files changed, 7 insertions, 0 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index 94791a5c0..a32b930d2 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -165,6 +165,10 @@ class User extends CI_Controller {
DELETE FROM invitations
WHERE `key` = ?
", array($key));
+ $this->load->view($this->var->view_dir.'header', $this->data);
+ $this->load->view($this->var->view_dir.'registered', $this->data);
+ $this->load->view($this->var->view_dir.'footer', $this->data);
+ return;
} else {
$values["username"] = $username;
$values["email"] = $email;
diff --git a/application/views/user/registered.php b/application/views/user/registered.php
new file mode 100644
index 000000000..f13006aae
--- /dev/null
+++ b/application/views/user/registered.php
@@ -0,0 +1,3 @@
+<div class="center">
+ <p>Your account has been created, you may log in now.</p>
+</div>