changin domain to auth.jakach.ch
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
**The new (future) open-source login system for Jakach**
|
||||
|
||||
Jakach Login offers an easy and secure way to access all Jakach services, including **jakach.duckdns.org**, **app.ksw3d.ch**, and more. It simplifies the login process by enabling users to log in with passwords, passkeys, and two-factor authentication (2FA) for enhanced security.
|
||||
Jakach Login offers an easy and secure way to access all Jakach services, including **jakach.ch**, **app.ksw3d.ch**, and more. It simplifies the login process by enabling users to log in with passwords, passkeys, and two-factor authentication (2FA) for enhanced security.
|
||||
|
||||
Jakach Login operates on its own authentication server. Any app utilizing Jakach Login must be able to communicate with this server via API requests.
|
||||
|
||||
@@ -53,7 +53,7 @@ To integrate Jakach Login into your application:
|
||||
4. **Add login button:**
|
||||
In your app/login page add a button like:
|
||||
```html
|
||||
<a href="https://jakach-auth.duckdns.org:444/?send_to=<your url/place of your oauth file>" class="btn btn-secondary">Log in using Jakach login</a>
|
||||
<a href="https://auth.jakach.ch:444/?send_to=<your url/place of your oauth file>" class="btn btn-secondary">Log in using Jakach login</a>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -22,7 +22,7 @@ $ip=$_SERVER["REMOTE_ADDR"];
|
||||
$location=get_location_from_ip($ip);
|
||||
$date=date('Y-m-d H:i:s');
|
||||
$token=bin2hex(random_bytes(128));
|
||||
$link="https://jakach-auth.duckdns.org:444/login/reset_pw.php?token=$token";
|
||||
$link="https://auth.jakach.ch:444/login/reset_pw.php?token=$token";
|
||||
|
||||
$message = "*Password reset token*\n\n"
|
||||
. "You have requested the reset of your password here is your reset link.\n\n"
|
||||
|
||||
@@ -6,7 +6,7 @@ This file can be installed in any service. If done so a user can authenticate wi
|
||||
$auth_token = $_GET["auth"];
|
||||
|
||||
// Check the auth token against Jakach login API
|
||||
$check_url = "https://jakach-auth.duckdns.org:444/api/auth/check_auth_key.php?auth_token=" . $auth_token;
|
||||
$check_url = "https://auth.jakach.ch:444/api/auth/check_auth_key.php?auth_token=" . $auth_token;
|
||||
|
||||
// Initialize cURL
|
||||
$ch = curl_init();
|
||||
|
||||
Reference in New Issue
Block a user