Commit Graph

24 Commits

Author SHA1 Message Date
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
Kyle Maas 7abf0a07ed Better explain password for insert-user 2022-11-07 11:09:05 +02:00
decentral1se c87a69f907 fix: error out if repoPath doesn't exist
See https://github.com/ssb-ngi-pointer/go-ssb-room/issues/275.
2022-04-06 14:33:47 +03:00
decentral1se f09ca6aff3 docs: squash typo on log message 2022-04-06 10:30:57 +03:00
decentral1se c7430e7976 docs: wording on repo flag 2022-04-06 10:30:57 +03:00
Henry a249fd8bee fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
Henry 4d3610e2fb prepare v2 release 2021-05-31 14:51:05 +02:00
Alexander Cobleigh c32c4cc6e7
change order displayed in help; flags first 2021-05-31 12:19:45 +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 6dfaf3a3ca fix flag name 2021-04-14 13:11:02 +02:00
Henry 377f3512a2 remove member nickname and alias suggestion
insert-user: remove nickname
2021-03-29 15:53:33 +02:00
cblgh 0f5e5a80de use name, not os.Args[1] when creating user 2021-03-24 10:22:11 +01:00
cblgh c81304a599 improve string referencing in script 2021-03-24 10:10:39 +01:00
cblgh 553e5d464b fix formatting, improve output message on member add 2021-03-24 10:09:35 +01:00
cblgh f19841a8c8 rewrite insert-user, use flags for providing all options 2021-03-23 18:00:08 +01:00
Henry a0be3e998b various fixes 2021-03-22 13:02:39 +01:00
Henry 5edd9b0066 mega schema overhaul
* create consolidated schema with new members table
* update interfaces
* remove allow_list and replace it with members
* update roomdb types
* rename User to Member
* add role enums
* update insert-user
2021-03-22 12:58:04 +01:00
Henry d39d1ac6e9 go fmt ./... the last PR 2021-03-16 15:13:05 +01:00
Henry 117cad48a7 rename admindb to roomdb 2021-03-10 16:44:46 +01:00
Henry bbcab73cb5 add admindb.InviteService
interface methods: create, consume, list and revoke.

SQLite implementation and some light testing.

Related changes:

* have authfallback.Create return the user id

At some point we will need to not assume that authfallback is our users
table but that will not become relevant before we start adding
moderation roles.

* Update package documentation of admindb and admindb/sqlite

* remove leftover generated.db

now using the roomdb file created by TestSimple

Review comments by @cblgh

* better documentation of hashed token storage
* space between %d and `bytes`
* make interface assertion comments less scary
2021-03-05 08:42:11 +01:00
Henry fec92d428c change name to go-ssb-room
It has been brought to my attention that "gossb" reads like "gossip..?"
to the untrained eye. That's just confusing.

Also the project hosts a single room so the plural was just wrong.
2021-02-09 17:38:51 +01:00
Henry 2f907a1753 build fixes 2021-02-09 17:29:42 +01:00
Henry 0a44d19b4b add missing license headers 2021-02-09 12:53:33 +01:00
Henry ef4a2f3f22 sqlite and auth setup 2021-02-08 17:47:42 +01:00