{"id":19448892,"url":"https://github.com/httpanimation/login-2","last_synced_at":"2025-04-25T02:31:52.217Z","repository":{"id":207248409,"uuid":"718791024","full_name":"HttpAnimation/login-2","owner":"HttpAnimation","description":"My 2nd attempt to make a login page","archived":true,"fork":false,"pushed_at":"2023-12-04T19:08:50.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"gh-pages","last_synced_at":"2025-02-25T09:17:59.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://httpanimation.github.io/login-2/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HttpAnimation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T20:05:05.000Z","updated_at":"2024-04-29T15:58:39.000Z","dependencies_parsed_at":"2023-11-14T21:24:40.307Z","dependency_job_id":"7d20cf6e-aeb4-41ee-a312-41d14cfa44c6","html_url":"https://github.com/HttpAnimation/login-2","commit_stats":null,"previous_names":["httpanimation/login-2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HttpAnimation%2Flogin-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HttpAnimation%2Flogin-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HttpAnimation%2Flogin-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HttpAnimation%2Flogin-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HttpAnimation","download_url":"https://codeload.github.com/HttpAnimation/login-2/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250741971,"owners_count":21479709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T16:28:57.985Z","updated_at":"2025-04-25T02:31:51.995Z","avatar_url":"https://github.com/HttpAnimation.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Login\r\nThis website is mainly made to be built into another website and not used in a signler mode.\r\n\r\n# Downloading\r\n1) Linux/MacOS\r\n\u003cbr\u003e\r\nTo download for Linux/MacOS open a terminal and type\r\n\r\n```\r\ngit clone https://github.com/HttpAnimation/login-2.git\r\n```\r\nOnce downloaded open the folder with any IDE and you're done.\r\n\r\n2) Windows\r\n\u003cbr\u003e\r\nTo download on Windows head over to the [Main part](https://github.com/HttpAnimation/login-2) of this Github then click Code and Download zip open finder and extract the zip file then open it with any IDE.\r\n\r\n\r\n# Defaults\r\nThe default login for this project is\r\n```\r\nUsername = Admin\r\nPassword = Password\r\n```\r\n\r\n# Changing login\r\nTo change the login of the website use any IDE for this i'll use nano and open the [Data.ini](https://github.com/HttpAnimation/login-2/blob/gh-pages/Data.ini) file for nano this is gonna be the following command.\r\n```\r\nnano Data.ini\r\n```\r\nOnce opened, change \r\n```\r\nUsername = Admin\r\nPassword = Password\r\n```\r\nto the data you wanna use for this exp let's use\r\n```\r\nUsername = HttpAnimations\r\nPassword = HackMePLS\r\n```\r\n\r\n# Live preview/use case\r\nIf you would like to see this project in action you can view this website [here](https://httpanimation.github.io/login-2/) for the single build. \u003cbr\u003e\r\nIf you would like to see this project in action for a real use look at this repo [here](https://github.com/HttpAnimation/Hicup) this is the repo that this project was made for.\r\n\r\n# Adding to a website\r\nIf you would like to add this to you're webiste make sure to edit Data.ini and replace \r\n```\r\n        if (parsedData.user === username \u0026\u0026 parsedData.pass === password) {\r\n          window.location.href = \"https://exp.com\";\r\n        } else {\r\n          alert(\"Invalid credentials. Please try again.\");\r\n        }\r\n```\r\nin script.js with the data you want it to do/use for the most case tho just change https://exp.com with /main.html or what ever you're site is for better protection make it so if you are not redieracted to hte site by the certian url it will take you back to index.html.\r\n\r\n## Why wont't it work localy\r\nThe reason the login page does not work on a local run is becasue cross-orgin with firefox this not a issue because firefox allows it if data.ini is also in the same dir/sub-dir as long as they are it will work other browsers will not allow this beacuse there dumb you might be able to rename Data.ini to Data.js and change the name in the java script code.\r\n\r\n# Other\r\nNote that is really made just to be a show case on how you could do it with out PHP code and if you are using PHP code it is gonna be way safer just to use that but for this, this is really just to be a way to put it on websites that don't want people to get to that easly.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpanimation%2Flogin-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttpanimation%2Flogin-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpanimation%2Flogin-2/lists"}