/Wee-Auth-System

A Auth System, Built with PHP

Primary LanguagePHP

Wee-Auth-System v1.0.0

A Auth System, Built with PHP

Next, we will call Wee-Auth-System: WAS, it's same like was(passive of is)

Features

WAS can finish the works like the list:

  • Domain Check -- User convenition feature
  • SESSION -- Prevent the CC Attack
  • Card-Password -- Quick authorization
  • Download with QR code -- More safety(This is TODO)
  • Quickly Check API -- Check authorization more convenient

Quick install

  • git clone this repo or download repo zip

  • Access index page, it will redirect you to install page

  • Just follow steps notice

  • Default user & password:

    User:admin

    Password:123456

API setting

this is a public API, it can work with remote resource, like Github Raw

How to modify API:

  • Open site root dir
  • Open check.php
  • please modify $file, $version

If you use remote resouce to control version setting, you can do like this:

$file = 'https://github.com/wibus-wee/STY-static/raw/main/.ver'; //remote resource URL
$version = file_get_contents($file); //it can't use get_curl, i don't know reason
$version= str_replace(array("\r\n", "\r", "\n"), "", $version);  //replace PHP line break

else, if you want to just modify variable to control,

$version = '1.0.0'; //just like this, it works!

QR code

This is a todo option, here are the problem lead to this option can't use

  • QQ old interface have a authorization check, it will return 403
  • Without new interface to use

Card-Password

It can add a authorization in a quickly way, but only support one domain

How to create c-p:

  • Open admin with administrator name & password
  • Open Generate camilo on index page
  • Put create-number in the inputBox
  • Click Create Camilo and wait for reloading

Permissions distribution

  • Domestic consumer, it only has add and addsite permissions
  • Assistant station master, it has a full permission like administration
  • Banned users, it can do nothing

Thank Repos / People

  • SummuL Auth System

    This is Project prototype, I redeveloped the project

    i fix and optimize..

    • Make API more stronger, make sure AuthCode can match the database
    • Optimize frontend, remove cartoons and music
    • Optimize Check API, remove useless variable VERSION, add remote resource(use file_get_contents make sure resource can get)
    • Fix Check API header, make sure header is json
    • Optimize Back-end UI, more comfortable, try to rebuild.
  • Bootstrap 5

    UI help, make ui come true more convenient.

    JavaScript help, add the plugins to enhance interactivity

  • Mr./Ms. Nuo

    Nuo give me the first auth system, and the system give me inspiration. It's machine made stiil be used in Wee-Auth-System