PageSourceSearch

https://aistandardshub.org/wp-content/plugins/ppp-aish-api/assets/js/generate-authentication-token.js

js aistandardshub.org collected 2026-09-24 09:20:50 UTC 485 bytes, 26 lines download raw bytes

1$(document).on( 'click', '#generate-api-password', function(){
2
3$user = userdata.user_id;
4$username = userdata.username;
5
6		$.ajax({
7			url: apidata.ajax_url,
8			type: "POST",
9			data: {
10				datum: $user,
11				action: "generateapipassword",
12			},
13			success: function(response){
14				
15				
16				$string = $username + ":" + response;
17				$authentication_token = btoa($string);
18				
19				
20				$(".generated-password").html($authentication_token);
21				$(".hidden-div").show();
22			}
23		})
24
25
26});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.