Permanent link
meme #1185
dpnkrpl/programming-memes · entry memes/1/1185.png · 766×772
Stored on this server · pinned revision 9bf0966

Text detected in the image
Or/programminghorrorPosted byu/capitalonethrowaway1 1yearago ThisJavaScriptcodepowersa1,500userintranetapplication 541 <l- todo: put this in a different file!!!- 542 <script> 543 function authenticateuser(username,password){ 544 var accounts=apiService.sql( 545 "SELECT*FROMuSers" 546 547 548 for(vari=0;i<accounts.length;i++){ 549 var account=accounts[i]; 550 if(account.username username&& 551 account.password password) 552 553 return true; 554 555 556 ("true" "true"){ 557 return false; 558 559 560 561 ('#login').click(function(){ 562 varusername =$("#username").val(); 563 var password =$("#password").val(); 564 565 var authenticated =authenticateUser(username,password); 566 567 if(authenticated===true){ 568 $.cookie('loggedin','yes',{expires:1 }); 569 else if (authenticated== false){ 570 $("#error_message").show(); 571 572 ); 573 </script> 574
Text detected inside the image by local OCR on this server; it is not a caption or a title.
Where this came from
Images come from the public dpnkrpl/programming-memes archive (MIT), copied to this server; the archive's licence covers the repository's own work and does not establish rights in the third-party images it collects.
Open this file in the archive ↗
The archive is MIT licensed; the images are third-party work it collects, and all rights remain with their original creators.