Project6943 - PHP USGN Auth 
2 comments Long ago, I wanted to create something like this.
There is is a similar upload already, however, this one I believe is a much more modern coding as well as provides a bit more function for your needs and comes with a responsive design as well.
Features:
Built with TailwindCSS 2.0.3 (uses CDN)
Hash generated by timestamp using SHA256 Encryption
USGN & Accesskey Stored in cookies 
Username
Data (avatar, user mode, country)
Requirements:
Any webserver like nginx, Apache
PHP 5.1.2+, PHP 7, PHP 8, PECL hash >= 1.1
Modern web-browser in case you using TailwindCSS
Configuration:
Configure index.php:18 line to your own website/domain
How can be used?
1. Users enter their USGN ID
2. They confirm ownership
3. Get redirected and authorized.
Users can logout using logout.php (which destroys cookies)
Changelog:
2021.10.24.
Checking if "accesskey" and "usgn" cookies are set for security reasons. Thanks for @
Skripter5000:
The form now only allows numeric inputs.
Where possible USGN ID is fetched by cookies to save traffic
There is is a similar upload already, however, this one I believe is a much more modern coding as well as provides a bit more function for your needs and comes with a responsive design as well.













Configure index.php:18 line to your own website/domain

1. Users enter their USGN ID
2. They confirm ownership
3. Get redirected and authorized.

Users can logout using logout.php (which destroys cookies)
Changelog:
2021.10.24.





edited 3×, last 24.10.21 07:13:45 pm

Comments
2 comments



Log in!
You need to log in to be able to write comments!Log in
@
Skripter5000: It can be fixed easily, I might missed that part.
Fixed.

Fixed.
edited 1×, last 26.10.21 09:39:30 am



