Commit Graph

19 Commits

Author SHA1 Message Date
XhmikosR
3dc8d9c5e3 Properly delete the persistentlogin cookie
The previous solution did not delete the cookie.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-22 16:23:46 +03:00
Rob Gill
96039f52a5 fix typo in cookie check
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-06-01 09:52:07 +10:00
Rob Gill
30bef67a88 indenting
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-05-15 10:55:46 +10:00
Rob Gill
72e95cec96 indenting
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-05-15 09:03:09 +10:00
Rob Gill
7a3fc169a5 Update password.php 2018-05-10 09:14:57 +10:00
Rob Gill
5733d08745 Remove invalid cookie
If cookie is invalid, it is cleared from the browser before continuing
2018-05-10 08:54:44 +10:00
Rob Gill
a8bf42687c Update password.php 2018-05-08 19:05:19 +10:00
rrobgill
84b6f6b291 Update password.php 2018-05-08 17:24:11 +10:00
rrobgill
85dd92771a Cookie login
Allow user to (optionally) set a cookie for automatic login.
Expiry is set for 7 days.
Cookie refreshes, extending for 7 days from each use.
2018-05-05 14:42:04 +10:00
Mcat12
289b62abf3 Fix header.php importing func.php twice
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-20 10:59:05 -05:00
Mcat12
862db2ba9e Use hash_equals in password.php (and move it to funcs.php)
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-19 17:52:06 -05:00
Andres Rey
a3aecbf15a Remove unused sprintf function 2017-10-10 18:42:32 +01:00
Andres Rey
33db4f2842 Redirect the user in a POST-Redirect-GET fashion after a successful login 2017-10-10 10:40:18 +01:00
DL6ER
d7fdaf9273 Fix whitespace caused by added license headers 2017-02-19 21:19:02 +01:00
DL6ER
4f70973cbc EUPL license (#402)
* Move whole project to EUPL, copy MIT license to scripts/vendor/ and style/vendor/

* Added header to main PHP files

* Modified scripts in scripts/pi-hole/php

* Added header to scripts/pi-hole/js files

* Added license header to our custom style script

* Slight reformulation
2017-02-18 14:20:51 +01:00
DL6ER
9db9eff3d8 Ensure that $auth is always set 2017-01-08 11:01:26 +01:00
Mcat12
2f65430a4d Move PHP scripts to scripts folder 2016-12-21 21:09:58 +01:00
DL6ER
e188cb6fbc Revert "Merge pull request #267 from pi-hole/folderStructure"
This reverts commit fba3d10fa4, reversing
changes made to 4ee75f4167.
2016-12-21 17:16:52 +01:00
Mcat12
d1da1de597 Move PHP scripts to scripts folder 2016-12-19 19:44:51 -05:00