Remove in-code todos and create issues for them

This commit is contained in:
eikendev 2020-07-27 01:12:58 +02:00
parent f6ca287d0b
commit 0b871b2136
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
2 changed files with 0 additions and 4 deletions

View file

@ -3,7 +3,6 @@ package credentials
import "golang.org/x/crypto/bcrypt" import "golang.org/x/crypto/bcrypt"
// CreatePassword returns a hashed version of the given password. // CreatePassword returns a hashed version of the given password.
// TODO: Make strength configurable.
func CreatePassword(pw string) []byte { func CreatePassword(pw string) []byte {
strength := 12 strength := 12
hashedPassword, err := bcrypt.GenerateFromPassword([]byte(pw), strength) hashedPassword, err := bcrypt.GenerateFromPassword([]byte(pw), strength)

View file

@ -21,9 +21,6 @@ type Dispatcher struct {
} }
// Create instanciates a dispatcher connection. // Create instanciates a dispatcher connection.
// TODO: Call JoinedRooms() to validate room mappings on startup.
// TODO: ForgetRoom() for unused rooms.
// TODO: InviteUser() if the user is no longer in the room.
func Create(db Database, homeserver, username, password string) (*Dispatcher, error) { func Create(db Database, homeserver, username, password string) (*Dispatcher, error) {
log.Println("Setting up dispatcher.") log.Println("Setting up dispatcher.")