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
18062a2305
feat: member can also invite by SSB-ID
...
Closes https://github.com/ssb-ngi-pointer/go-ssb-room/issues/283
2022-08-22 12:07:25 +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
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
d147d0642a
fix rendering non-members on the dashboard ( #238 )
...
* fix rendering non-members on the dashboard
fixes #236
* remove alias or feedref code from template
doing this in the template was hard to read and inefficient.
also: rename OnlineMembers to OnlineUsers since it is a misnomer.
There are other connected peers in a room in certain privacy modes.
2021-06-01 14:23:42 +02:00
Henry
4d3610e2fb
prepare v2 release
2021-05-31 14:51:05 +02:00
Henry
f83bf65bb9
don't block dasboard rendering for too long
...
updates #210
2021-05-31 07:38:52 +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
be35f154b7
add tests for new password features
...
* reset link creation
* own password change
* setPasswordWithToken
* also: move member handler funcs to own file
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
5bfb5316f8
minor fixes
...
remove unsed about page and fix some typos
2021-05-11 10:17:02 +02:00
Henry
5385ef65bb
add middleware to check roles
...
fixes #176
2021-05-10 13:52:45 +02:00
Henry
e72f1a3787
cleanup redirect mess for denied removal
...
updates #205
2021-05-10 13:51:29 +02:00
Henry
3651432b42
use errHandler in admin tests
2021-04-26 09:29:22 +02:00
cblgh
cae80e385e
make alias mockdb return alias entry
2021-04-26 09:29:22 +02:00
cblgh
ab06233f28
test invite creation under community & restricted for admin, mod & member
...
Update web/handlers/admin/setup_test.go
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
2021-04-26 09:29:17 +02:00
cblgh
80686dec26
cherrypick: ts.User is now pointer
2021-04-23 13:25:13 +02:00
Henry
57c1375e54
fix missing context
2021-04-23 11:25:35 +02:00
Henry
e6ca0ed74b
remove unused argument
2021-04-23 08:56:01 +02:00
cblgh
cec5f93fb6
tests for restricted UI behavior
...
* add tests for privacy mode settings
* test privacy mode settings for member role
* test default language settings
* test denied keys interface for each role
* test adding new member interface depending on role
* test member details depending on role
* test invite button is disabled pending on user role
2021-04-23 08:34:27 +02:00
cblgh
2c9fdcb98e
update HTML UI to reflect role access restrictions
...
* disable ui if user is unelevated
* disable revoke button if unelevated and not own invite
* improve styling of disabled elements
* remove revoke if alias not made my current user
2021-04-23 08:33:20 +02:00
cblgh
c6077337d1
use more robust identifier for test
2021-04-20 10:36:40 +02:00
Alexander Cobleigh
a5f7701437
Apply suggestions from code review
...
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
use eh.Handle
2021-04-20 10:36:34 +02:00
cblgh
0574c9a235
test language picking
2021-04-20 09:22:53 +02:00
cblgh
c97b7d44c3
add default language admin ui functionality
2021-04-20 09:22:49 +02:00
cblgh
682283374d
mock injected functions for tests
2021-04-20 09:12:15 +02:00
Henry
52ec94e878
fix link generation for alias registration
...
fixes #160
2021-04-19 15:00:35 +02:00
Henry
3323a85226
refactor urlTo to use domain information for all links
2021-04-19 15:00:29 +02:00
Andre Staltz
fb8c20fffe
update TestMembers to check for roles
2021-04-16 14:43:35 +03:00
Andre Staltz
6b082c45f7
more content and member links on the dashboard
2021-04-15 16:24:57 +03: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
60010a7787
use flashes for notice edits
2021-04-12 14:09:09 +02:00
Henry
2c96b93102
add role/owner check on alias revocation
2021-04-12 14:09:09 +02:00
Henry
dbf0fe5801
show login error above form
2021-04-12 14:09:09 +02:00
Henry
cec7bc0e44
add flash message helper
2021-04-12 14:09:09 +02:00
Henry
81bd94344e
web/handlers: revamp error localization
...
fixes #66
2021-04-12 14:09:07 +02:00
cblgh
22a2348187
create /settings, move privacy modes ui into it
2021-04-12 13:42:31 +02:00
cblgh
ac1ede43be
clean up privacy mode logic
2021-04-09 13:50:15 +02:00
cblgh
092ce82ab1
wip logic for setting privacy modes
2021-04-09 13:25:40 +02:00
Andre Staltz
822e43e56f
update tests for invites-list admin page
2021-04-08 13:34:43 +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
Andre Staltz
326b9453f6
replace a hard-coded internal URL with urlTo
2021-04-07 19:28:05 +03:00
Andre Staltz
60c0b36f04
add tests for member-details
2021-04-07 14:58:31 +03:00
Andre Staltz
4f70c62ab2
combine aliases page with members page
2021-04-07 14:38:03 +03:00
Henry
e9534a0dec
set default privacy mode for all tests
2021-04-06 17:24:46 +02:00
cblgh
1b366dcf9f
wip fix tests after new roomdb.RoomConfig interface added
2021-04-06 17:21:41 +02:00
cblgh
09eff17712
implement review suggestions
2021-04-06 16:52:54 +02:00