Commit Graph

66 Commits

Author SHA1 Message Date
decentral1se 58f44537bf
test: faster generation 2022-11-11 19:15:37 +01:00
decentral1se 00a1452cfc
Migrate to ssbc urls (#336)
* fix: ssbc urls

Closes https://github.com/ssbc/go-ssb-room/issues/332

* fix: go-ssb-refs API changes

* test: go-ssb-refs API changes

Co-authored-by: decentral1se <cellarspoon@riseup.net>
Co-authored-by: André Staltz <andre@staltz.com>
2022-11-07 11:18:13 +02:00
decentral1se 49aaff968f
fix: accept invites as an existing member is ok
PR #302

Closes https://github.com/ssb-ngi-pointer/go-ssb-room/issues/299.

Co-authored-by: decentral1se <cellarspoon@riseup.net>
2022-03-28 13:48:00 +03:00
boreq 5687fd5fa1 Fix alias not being displayed on the invites page
Reading the template of the invites page it was the intention of the
author to display the aliases instead of user refs if they are
available. The code loading the invites wasn't properly loading the
aliases of the useres who created them though always leading to this
data not being populated. This fix populates the aliases when listing
invites.

Additionally turned the invite author field into a link. This requires
some extra styling.

Fixes #245.
2021-11-23 09:22:14 -03:00
Henry a249fd8bee fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
Tim Nordenfur 6313ee5546 fixed some typos 2021-06-15 16:24:06 +02:00
Tim Nordenfur b3b2f59f90 generated mockdb as Invites.Count signature changed 2021-06-13 00:02:54 +02:00
Tim Nordenfur 5d3ccc7184 combined Invites.Count and Invites.CountActive 2021-06-12 23:43:04 +02:00
Tim Nordenfur 922fa34302 Exclude revoked invites in dashboard invite count 2021-06-10 17:02:16 +02:00
Henry 457ea0be38 fix sqlboiler.toml 2021-05-31 14:59:34 +02:00
Henry 4d3610e2fb prepare v2 release 2021-05-31 14:51:05 +02:00
Henry 81c05a663d Support open invites (fixes #102) 2021-05-17 10:16:26 +02:00
Henry 385b98a3a1 add privacy mode and role tests (fixes #185)
* denied/remove
* denied/add
* invites/revoke
* members/remove
* notices/edit
* notices/add

also:
* add members.CheckAction helper
* fix muxrpc abort bug and update to v2.0.5
* strictly use SeeOther not 307 (fixes #149)
2021-05-14 14:27:01 +02:00
Henry 7c356fa407 change []byte password to string 2021-05-13 07:39:19 +02:00
Henry 4558b208ee implement password update flow with reset tokens (fixes #98)
also update AuthFallback database

* re-write fallback auth to use alias or ssbid
* replace Create() with SetPassword() which does an upsert
* Add reset tokens to sqlite
* add test for SetPassword with reset token
2021-05-13 07:39:14 +02:00
Henry 7c75b27c8d
have a clear error on taken aliases
fixes #194
2021-05-10 13:51:05 +02:00
cblgh c6077337d1 use more robust identifier for test 2021-04-20 10:36:40 +02:00
cblgh 8d1f790f57 add flag for toggling usage of alias subdomains
related to #160, requested by cryptix
2021-04-20 09:22:53 +02:00
cblgh c97b7d44c3 add default language admin ui functionality 2021-04-20 09:22:49 +02:00
Henry 04fb06dcaa add member_is_admin and member_has_role template helpers 2021-04-16 09:40:19 +02:00
Henry 8ff4adf160 various fixes
* fix test compilation
* fix aliases on member page
* add tests for aliases on member.GetByID and ByFeed
* fix admin tests
* use webassert helper for flash messages
* fix flashes
2021-04-12 14:10:42 +02:00
Henry dbf0fe5801 show login error above form 2021-04-12 14:09:09 +02:00
Henry 59a5fe44a4 sqlite: make sure to return ErrNotFound 2021-04-12 14:09:09 +02:00
cblgh ac1ede43be clean up privacy mode logic 2021-04-09 13:50:15 +02:00
André Staltz 69ee2529e2
add code comment on Members.getAliases
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
2021-04-08 14:42:44 +03:00
Andre Staltz 67877407b8
restyle the invites page 2021-04-08 13:10:45 +03:00
André Staltz aeb0f9f824
Merge pull request #123 from ssb-ngi-pointer/style-members3
combine aliases page with members page
2021-04-08 11:58:03 +03:00
André Staltz 9c4bd63a50
Update roomdb/sqlite/members.go
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
2021-04-07 17:06:54 +03:00
Andre Staltz 4f70c62ab2
combine aliases page with members page 2021-04-07 14:38:03 +03:00
cblgh 83500421f8 deny connections for banned keys 2021-04-07 12:58:03 +02:00
Henry 764b15f4eb
Merge pull request #121 from ssb-ngi-pointer/fix-dashboard-styling
fix dashboard styling and invite count
2021-04-07 09:58:07 +02:00
Henry 01cd99b3e6 fix dashboard styling and invite count 2021-04-07 09:54:33 +02:00
cblgh 418f1d6606 use custom type marshalling via database/sql interface
* remove cruft from sqlite package
* update sqlboiler.toml
* fix default value in migration
* add default tests
2021-04-07 08:53:50 +02:00
cblgh 1b366dcf9f wip fix tests after new roomdb.RoomConfig interface added 2021-04-06 17:21:41 +02:00
cblgh a7d1e17d3f add stringer-generated file for privacy modes 2021-04-06 16:52:54 +02:00
cblgh 4af943e695 add basic tests for privacy modes 2021-04-06 16:52:54 +02:00
cblgh 09eff17712 implement review suggestions 2021-04-06 16:52:54 +02:00
cblgh 75c60dbb16 implement SetPrivacyMode, rework -mode flag to use 2021-04-06 16:52:54 +02:00
cblgh b0761783f9 persist privacy mode in sqlite :> 2021-04-06 16:52:54 +02:00
cblgh 7e3fcdb479 update package doc & old names 2021-04-06 16:52:54 +02:00
cblgh 5666ee4a80 make sure generate-models.sh runs from correct dir 2021-04-06 16:52:54 +02:00
cblgh faae7c0324 get started with privacy modes, parse -mode flag 2021-04-06 16:52:51 +02:00
Andre Staltz d81198b78d
change Count() to return uint and error 2021-03-30 11:50:13 +03:00
Andre Staltz 6ee11a3fce
add Count() to Members, Invites, DeniedKeys 2021-03-30 11:50:13 +03:00
Henry 377f3512a2 remove member nickname and alias suggestion
insert-user: remove nickname
2021-03-29 15:53:33 +02:00
Henry d1d108b9b7 Add support for invite consumption via JSON 2021-03-29 15:53:30 +02:00
Henry c13741d4b8 integrate stringer dependency 2021-03-29 15:42:32 +02:00
Henry a62ad21165 integrate counterfeiter dependency 2021-03-29 15:33:58 +02:00
Henry 4325e0fb3d various fixes
* fill in sid and sc
* fix logout
* cascade member removal
* fix links
* trim suffix from signature
* fix /sse/login link
* fix sse links and filenames
* fix logout
* fix typos
* fix test compilation
* fix bridge test
* correct alias url test
* add some comments
* fix potentiall "can't send" deadlock on bridge

some documentation and license headers
2021-03-26 13:45:17 +01:00
Henry afa6bee285 add server-sent events handler 2021-03-26 13:36:48 +01:00