aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
Commit message (Collapse)AuthorAgeFilesLines
* Add security logger to RedDAV.Klaus Weidenbach2014-12-141-4/+18
| | | | Some smaller clean ups whitepsaces and tabs, use PHP_EOL, Doxygen, etc.
* PostgreSQL support initial commitHabeas Codice2014-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were 11 main types of changes: - UPDATE's and DELETE's sometimes had LIMIT 1 at the end of them. This is not only non-compliant but it would certainly not do what whoever wrote it thought it would. It is likely this mistake was just copied from Friendica. All of these instances, the LIMIT 1 was simply removed. - Bitwise operations (and even some non-zero int checks) erroneously rely on MySQL implicit integer-boolean conversion in the WHERE clauses. This is non-compliant (and bad programming practice to boot). Proper explicit boolean conversions were added. New queries should use proper conventions. - MySQL has a different operator for bitwise XOR than postgres. Rather than add yet another dba_ func, I converted them to "& ~" ("AND NOT") when turning off, and "|" ("OR") when turning on. There were no true toggles (XOR). New queries should refrain from using XOR when not necessary. - There are several fields which the schema has marked as NOT NULL, but the inserts don't specify them. The reason this works is because mysql totally ignores the constraint and adds an empty text default automatically. Again, non-compliant, obviously. In these cases a default of empty text was added. - Several statements rely on a non-standard MySQL feature (http://dev.mysql.com/doc/refman/5.5/en/group-by-handling.html). These queries can all be rewritten to be standards compliant. Interestingly enough, the newly rewritten standards compliant queries run a zillion times faster, even on MySQL. - A couple of function/operator name translations were needed (RAND/RANDOM, GROUP_CONCAT/STRING_AGG, UTC_NOW, REGEXP/~, ^/#) -- assist functions added in the dba_ - INTERVALs: postgres requires quotes around the value, mysql requires that there are not quotes around the value -- assist functions added in the dba_ - NULL_DATE's -- Postgres does not allow the invalid date '0000-00-00 00:00:00' (there is no such thing as year 0 or month 0 or day 0). We use '0001-01-01 00:00:00' for postgres. Conversions are handled in Zot/item packets automagically by quoting all dates with dbescdate(). - char(##) specifications in the schema creates fields with blank spaces that aren't trimmed in the code. MySQL apparently treats char(##) as varchar(##), again, non-compliant. Since postgres works better with text fields anyway, this ball of bugs was simply side-stepped by using 'text' datatype for all text fields in the postgres schema. varchar was used in a couple of places where it actually seemed appropriate (size constraint), but without rigorously vetting that all of the PHP code actually validates data, new bugs might come out from under the rug. - postgres doesn't store nul bytes and a few other non-printables in text fields, even when quoted. bytea fields were used when storing binary data (photo.data, attach.data). A new dbescbin() function was added to handle this transparently. - postgres does not support LIMIT #,# syntax. All databases support LIMIT # OFFSET # syntax. Statements were updated to be standard. These changes require corresponding changes in the coding standards. Please review those before adding any code going forward. Still on my TODO list: - remove quotes from non-reserved identifiers and make reserved identifiers use dba func for quoting - Rewrite search queries for better results (both MySQL and Postgres)
* Some documentation of include/auth.php.Klaus Weidenbach2014-10-051-53/+74
|
* and provide a strong hint by showing the errant account_flagsfriendica2014-09-091-5/+5
|
* in case somebody has problems and does an update to try and fix it, put ↵friendica2014-09-091-0/+13
| | | | something in the logs to show what's happening.
* paranoia tweaksfriendica2014-07-211-2/+6
|
* add more control to auth paranoia settingfriendica2014-07-201-4/+27
|
* docofriendica2014-07-101-1/+7
|
* finish implementing email verification. Currently it only applies if ↵friendica2014-07-091-1/+6
| | | | REGISTER_OPEN is in effect.
* log IP mis-matches even if paranoia isn't set.friendica2014-05-111-7/+8
|
* This should resolve the dav authentication loop (correctly)friendica2014-02-221-6/+15
|
* introduce a new privacy level "PERMS_AUTHED" to indicate somebody that is ↵friendica2014-02-181-1/+1
| | | | able to successfully authenticate (but is not necessarily in this network).
* some more snakebite and fix up include/account - forgot about that inline ↵friendica2014-02-181-4/+4
| | | | array stuff
* operation snakebite continued. openid now works for local accounts using the ↵friendica2014-02-171-0/+10
| | | | rmagic module and after storing your openid in pconfig. This is just an interesting but trivial (in the bigger scheme of things) side effect of snakebite. The snake hasn't even waken up yet.
* use profile photo on vcard before reverting to xchan photofriendica2014-02-111-1/+1
|
* Log failed auth to it's own file so fail2ban doesn't have to parse MB of textThomas Willingham2014-01-151-2/+15
|
* on successful magic-auth, put remote_service_class and remote_hub into the ↵friendica2013-12-031-0/+2
| | | | session
* doc - complete hook list, still need detailed functional descriptions with ↵friendica2013-10-181-1/+2
| | | | parameters and examples for each
* More mobile theme fixesChristian Vogeley2013-08-311-0/+1
| | | | | | If user is logged in personal settings are used else use admin settings. Only show toggle link if there is something to switch between.
* get rid of more variables with dashes in the names - use underscore *except* ↵friendica2013-08-151-1/+1
| | | | in CSS. These were probably already here, but if you see any - please keep them out of PHP and MySQL where they sometimes get interpreted as a subtraction operation and are a bugger to find.
* remote control - if auth'd visitor is in config system remote_admins ↵friendica2013-07-221-0/+15
| | | | (array), become superuser. Literally. Full control. Untested.
* move new_cookie() to the session driver so we can use it for other purposes ↵friendica2013-05-231-10/+0
| | | | besides "normal" web login (for instance magic auth)
* start formatting for Doxygenfriendica2013-02-251-1/+1
|
* lostpass fixes and login/logout flow if authenticated but no default channel ↵friendica2013-01-271-0/+2
| | | | exists
* make contact_remove sort of work so I can actually get rid of Oliver's and ↵friendica2013-01-251-2/+2
| | | | Michael J's dead contacts and not poll them every ten minutes forever
* now we're into the minor nitty fixesfriendica2013-01-211-3/+3
|
* magic auth - it's mostly done or at least all the code bits are written and ↵friendica2013-01-211-8/+13
| | | | it looks in theory to be pretty secure and it doesn't white screen. Getting it to actually work(?), well we won't know how hard that will be until we get it on a couple of systems and try it. Magic auth on one box is a no-op because you're already authenticated.
* port "remember me" from Friendicafriendica2013-01-041-41/+57
|
* upstream fixesfriendica2012-10-211-20/+0
|
* updatesfriendica2012-09-091-2/+1
|
* Now logging in with Red zaccount/zentity instead of Friendica user. Yay. ↵friendica2012-08-271-23/+33
| | | | Most existing Friendica functionality is now stuffed since the Red structures are quite different.
* a few minor changesfriendica2012-08-261-37/+44
|
* handle multiple underscores in D* linksfriendica2012-05-261-0/+2
|
* clear submanage, etc from session on logoutfriendica2012-05-221-0/+7
|
* Merge branch 'master' of https://github.com/friendica/friendicaAlexander Kampmann2012-04-051-1/+5
|\ | | | | | | | | | | Conflicts: include/config.php update.php
| * catch OpenID login errors in cases when the OpenID server does not answersTobias Diekershoff2012-03-301-1/+5
|/
* add IP address to failed login log messagefriendica2012-03-191-1/+2
|
* Merge pull request #150 from fabrixxm/masterfriendica2012-03-191-1/+1
|\ | | | | Add "logging_out" hook
| * add 'loggin_out' hookFabio Comuni2012-03-121-1/+1
| |
* | refactor openid logins/registrationsfriendica2012-03-191-25/+4
|/
* sql typo in auto-friend with D*friendica2012-02-151-1/+1
|
* add remove_user hook (it looks like dreamhost changed all my file ↵friendica2012-01-181-0/+0
| | | | permissions, this will make a nasty commit)
* modularise successful authenticationfriendica2012-01-121-93/+5
|
* works on login formFabio Comuni2011-10-171-6/+7
|
* account expiration structuresFriendika2011-09-181-2/+2
|
* missing salmon key? report it.Friendika2011-08-241-2/+4
|
* some more zot changes migrating back to f9a mainlineFriendika2011-08-011-6/+6
|
* new member pageFriendika2011-06-031-0/+13
|
* Merge branch 'fabrixxm-master'Friendika2011-05-231-4/+4
|\ | | | | | | | | Conflicts: boot.php
| * add info() function. Works like notice() but show messages in a div with ↵Fabio Comuni2011-05-231-4/+4
| | | | | | | | | | | | | | class info-message. update code to use info() instead of notice() when appropriate (non-error message) add info-message class style in themes