Commit Graph

53 Commits

Author SHA1 Message Date
Bofh 697204fe7b Added logout button on profile menu 2021-11-28 19:25:28 +01:00
Bofh 684e169b70 Added modal system + added profile menu 2021-11-28 18:37:26 +01:00
Bofh 8ca3a6c051 Designing /web layout + user nav 2021-11-28 03:04:53 +01:00
Bofh 5f219304a2 Add a css loader on every async API call
TODO: maybe be able to select not to show it by arg?
2021-11-27 22:42:27 +01:00
Bofh ba6569ee0b Little css improvements on /login 2021-11-27 22:37:42 +01:00
Bofh 325268ba6b Revert "Don't return_transfer on oauth revoke"
This reverts commit c927aeed6d.
2021-11-27 21:51:25 +01:00
Bofh 0c04725568 Added keycode Enter support for login 2021-11-27 21:43:29 +01:00
Bofh fb1d26d57f Locales changes + little css changes 2021-11-27 21:30:14 +01:00
Bofh 73bc3dc993 /login redirects to / if session is ok 2021-11-27 20:47:05 +01:00
Bofh 4f73dddc73 Finish mastodon login flow 2021-11-27 20:44:46 +01:00
Bofh 415becc496 Layouts and css for /login and /login/mastodon 2021-11-27 20:41:40 +01:00
Bofh 1cb570bbb3 Home css + added /discovery 2021-11-27 16:54:18 +01:00
Bofh 85af815d99 Changed hero and start messages 2021-11-27 15:12:22 +01:00
Bofh c927aeed6d Don't return_transfer on oauth revoke 2021-11-27 14:58:39 +01:00
Bofh f83f86554c Logout process now revokes Mastodon auth token associated to session 2021-11-27 03:18:05 +01:00
Bofh 4590975b96 Get user profile data into $user variable 2021-11-27 03:04:22 +01:00
Bofh 9745fe5a9f Implement logout system 2021-11-27 02:52:54 +01:00
Bofh 349ee5fa42 Add even more data to auth_more
We need to know the instance of the token to revoke it
2021-11-27 02:47:51 +01:00
Bofh adff3cc36f Add auth_more field for more authentication data needed 2021-11-27 02:45:18 +01:00
Bofh 418d4f3371 Refactor /signup to /login to be more clear
(Actually the signup and login process is the same)
2021-11-27 02:18:09 +01:00
Bofh a2f03869d1 Add cookie validation on base.php and include web/index.php if ok 2021-11-27 02:03:34 +01:00
Bofh f65402204e Solved bug or typo in oauth mastodon 2021-11-27 01:42:51 +01:00
Bofh 564f81d5d5 Removed mocks for oauth mastodon 2021-11-27 01:38:41 +01:00
Bofh bfc0bde05d Added session creation on Mastodon + Add migration 2021-11-27 01:36:34 +01:00
Bofh 40374fa3a7 Add migrations 2021-11-26 23:49:17 +01:00
Bofh 77e398f253 Added check acct correct and exists on database (still TODO) 2021-11-26 01:40:43 +01:00
Bofh 498627051c Changed http code parameter order 2021-11-26 01:40:12 +01:00
Bofh 6171363041 Change database to a simple PDO object 2021-11-26 01:39:17 +01:00
Bofh c4745f0519 Implemented a default config system 2021-11-26 01:10:36 +01:00
Bofh 49016345da Add docker image to support Apache rewrites and PSQL 2021-11-26 01:03:07 +01:00
Bofh ff33fd7bcf Join things together to postgres 2021-11-26 01:02:27 +01:00
Bofh 5282b5cabb Tigthen permissions + implement mocks for OAuth testing
* We are testing the OAuth final step
2021-11-25 20:52:46 +01:00
Bofh d9b0013329 Half-implemented OAuth system for Mastodon 2021-11-25 20:01:30 +01:00
Bofh 0b28014597 Added some base methods (utils) 2021-11-25 20:00:18 +01:00
Bofh b889e008a4 Change hardcoded DEV HOST 2021-11-25 19:18:00 +01:00
Bofh a549dff9d6 Fix typo in config.php.example 2021-11-25 17:19:17 +01:00
Bofh 96d6b5f083 hres and hres_json for responses 2021-11-25 16:43:35 +01:00
Bofh 3ad1d22f46 Add API to get Mastodon new Authorization OAUTH URL 2021-11-25 15:53:32 +01:00
Bofh 6338397650 Added base methods + change l to bootstrap lr()
* Created resolve_instance function
2021-11-25 15:52:37 +01:00
Bofh 15751325be Added config system 2021-11-25 14:33:49 +01:00
Bofh 381a188082 Fixed bug REDIRECT_URL not exists + views base Layout 2021-11-25 13:54:55 +01:00
Bofh edd8ffb317 Added base signup page 2021-11-25 13:34:40 +01:00
Bofh f243b08ec9 Added routing system (/user/@ and /@) + custom css 2021-11-25 13:26:50 +01:00
Bofh 077d030757 fix typo 2021-11-25 01:03:09 +01:00
Bofh 91f6dd2a8b Implemented locale system (without lang detection) 2021-11-25 01:01:05 +01:00
Bofh adda2114e5 Implement base env detection + simple templating 2021-11-24 21:50:30 +01:00
Bofh e6bf477386 Added skeleton css lib 2021-11-24 21:49:42 +01:00
Bofh 1e4426c5d1 Add ENV=dev on docker-compose 2021-11-24 21:48:01 +01:00
Bofh fd491cae8c Add docker-compose for dev 2021-11-24 20:49:27 +01:00
Bofh e0ec06c197 Actualizar 'README.md' 2021-11-24 18:30:11 +00:00