Hello, i have a apache2 webserver on raspberry pi running, nextcloud installed and configured to use mysql. Now I have a webserver which has a login with mysql etc., but the issue is that if i want to access my files i have to login twice and if i want to create a user, i have to create it twice. Is there a way to merge both logins?
I still want to keep the old website which (for now, but i really want to merge those 2 websites too) if you press a button it redirects you to the nextcloud login. So, which file should i change if i would like to delete some functions like settings, etc. and add my own html code? My login on the external website: `
if($_SERVER[“REQUEST_METHOD”] == “POST”)
$mypassword = hash('sha256', $mypassword1);
$sql="SELECT * FROM login WHERE username='$myusername1' and password='$mypassword'";
header ("location: ./pages/home.php");
$error="Your Login Name or Password is invalid";
<strong> Login </strong>
<br><br><div class="input-field col s6">
<label>Username</label><input type = "text" name = "username"/>
<div class="input-field col s6">
<label>Password</label><input type = "password" name = "password"/>
<button class="btn waves-effect waves-light" type="submit" name="action">Prisijungti
<i class="material-icons right">send</i>
would like to get an answer soon, thank you.