equal
deleted
inserted
replaced
104 $pubkey = $session->rijndael_genkey(); |
104 $pubkey = $session->rijndael_genkey(); |
105 $challenge = $session->dss_rand(); |
105 $challenge = $session->dss_rand(); |
106 |
106 |
107 if ( isset($_GET['act']) && $_GET['act'] == 'getkey' ) |
107 if ( isset($_GET['act']) && $_GET['act'] == 'getkey' ) |
108 { |
108 { |
|
109 header('Content-type: application/json'); |
109 $username = ( $session->user_logged_in ) ? $session->username : false; |
110 $username = ( $session->user_logged_in ) ? $session->username : false; |
110 $response = Array( |
111 $response = Array( |
111 'username' => $username, |
112 'username' => $username, |
112 'key' => $pubkey, |
113 'key' => $pubkey, |
113 'challenge' => $challenge |
114 'challenge' => $challenge |