Skip to content

Commit ccbb669

Browse files
committed
Merge branch 'prevent-common-passowords' of https://github.com/AdityaKirad/epic-stack into prevent-common-passowords
2 parents 8c7723d + 203592d commit ccbb669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/auth.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export async function checkCommonPassword(password: string) {
280280
const data = await res.text()
281281
return data.split('/\r?\n/').some((line) => line.includes(suffix))
282282
} catch (error) {
283-
if (error instanceof DOMException && error.name === 'AbortError') {
283+
if (error instanceof Error && error.name === 'AbortError') {
284284
console.warn('Password check timed out')
285285
}
286286
console.warn('unknow error during password check', error)

0 commit comments

Comments
 (0)