1 <& /util/import_javascript.mas, classes=>[ "jquery.cookie" ] &>
5 <h1>User Information</h1>
8 <table class="table table-hover">
16 <tbody id="person_data">
21 $(document).ready(function() {
23 var cookie = $.cookie('sgn_session_id');
27 url: "/authenticate/check/token",
28 data: ({cookie:cookie}),
29 success: function(data) {
31 for (r in data.result) {
32 data_html += "<tr><td>"+data.result[r].person_id+"</td><td>"+data.result[r].username+"</td><td>"+data.result[r].first_name+"</td><td>"+data.result[r].last_name+"</td><td>";
33 for (x in data.result[r].roles) {
34 data_html += data.result[r].roles[x] + "<br/>";
36 data_html += "</td></tr>";
38 $('#person_data').html(data_html);