summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Pages/Register.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal/protected/Pages/Register.php')
-rw-r--r--demos/personal/protected/Pages/Register.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/demos/personal/protected/Pages/Register.php b/demos/personal/protected/Pages/Register.php
new file mode 100644
index 00000000..b699d859
--- /dev/null
+++ b/demos/personal/protected/Pages/Register.php
@@ -0,0 +1,19 @@
+<?php
+
+class Register extends TPage
+{
+ public function checkUsername($sender,$param)
+ {
+ // set $param->IsValid to false if the username is already taken
+ }
+
+ public function createUser($sender,$param)
+ {
+ if($this->IsValid)
+ {
+ // create new user account
+ }
+ }
+}
+
+?> \ No newline at end of file