integrate login/register functionality more properly with app
[scpubgit/stemmatology.git] / stemmaweb / root / src / auth / success.tt
diff --git a/stemmaweb/root/src/auth/success.tt b/stemmaweb/root/src/auth/success.tt
new file mode 100644 (file)
index 0000000..39189cf
--- /dev/null
@@ -0,0 +1,29 @@
+[% WRAPPER header.tt
+       pagetitle = "Stemmaweb - Logged in"
+       applicationstyle = c.uri_for('/css/auth.css')
+%]
+    <script type="text/javascript">
+$(document).ready(function() {
+    var status = '[% status_msg %]';
+    var error = '[% error_msg %]';
+    if( status && !error ) {
+       setInterval( function ( e ) {
+               window.opener.location.reload(true);
+               window.close();
+               e.preventDefault();
+       }, 2000 );
+    }
+});
+    </script>
+[% END %]
+       <div id="topbanner">
+               <h1>Stemmaweb - Signed in</h1>
+       </div>
+
+<div id="login_status">
+[% IF status_msg %]
+                       <p>[% status_msg | html %]</p>
+                       <p>Please wait...</p>
+[% END %]
+</div>
+[% PROCESS footer.tt %]
\ No newline at end of file