Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions appservice/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package storage
Expand Down
6 changes: 4 additions & 2 deletions clientapi/auth/password.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import (
"github.com/matrix-org/util"
)

const email = "email"

type GetAccountByPassword func(ctx context.Context, localpart, password string) (*api.Account, error)

type PasswordRequest struct {
Expand Down Expand Up @@ -59,9 +61,9 @@ func (t *LoginTypePassword) Login(ctx context.Context, req interface{}) (*Login,
if username != "" {
localpart, err = userutil.ParseUsernameParam(username, &t.Config.Matrix.ServerName)
} else {
if r.Medium == "email" {
if r.Medium == email {
if r.Address != "" {
localpart, err = t.AccountDB.GetLocalpartForThreePID(ctx, r.Address, "email")
localpart, err = t.AccountDB.GetLocalpartForThreePID(ctx, r.Address, email)
if localpart == "" {
return nil, &util.JSONResponse{
Code: http.StatusForbidden,
Expand Down
1 change: 1 addition & 0 deletions cmd/dendrite-demo-pinecone/embed/embed_other.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !elementweb
// +build !elementweb

package embed
Expand Down
1 change: 1 addition & 0 deletions cmd/dendrite-demo-yggdrasil/embed/embed_other.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !elementweb
// +build !elementweb

package embed
Expand Down
1 change: 1 addition & 0 deletions cmd/dendritejs-pinecone/main_noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package main
Expand Down
1 change: 1 addition & 0 deletions cmd/dendritejs/main_noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package main
Expand Down
1 change: 1 addition & 0 deletions federationsender/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package storage
Expand Down
1 change: 1 addition & 0 deletions internal/sqlutil/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package sqlutil
Expand Down
1 change: 1 addition & 0 deletions internal/sqlutil/trace_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package sqlutil
Expand Down
1 change: 1 addition & 0 deletions keyserver/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package storage
Expand Down
1 change: 1 addition & 0 deletions mediaapi/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package storage
Expand Down
1 change: 1 addition & 0 deletions mediaapi/thumbnailer/thumbnailer_nfnt.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !bimg
// +build !bimg

package thumbnailer
Expand Down
1 change: 1 addition & 0 deletions roomserver/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package storage
Expand Down
1 change: 1 addition & 0 deletions signingkeyserver/storage/keydb.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package storage
Expand Down
1 change: 1 addition & 0 deletions syncapi/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package storage
Expand Down
1 change: 1 addition & 0 deletions userapi/storage/accounts/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package accounts
Expand Down
1 change: 1 addition & 0 deletions userapi/storage/devices/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !wasm
// +build !wasm

package devices
Expand Down