Skip to content

Commit a2df395

Browse files
committed
auth: userpass, set default role to Role.USER
1 parent 05f7622 commit a2df395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/infrastructure/presenter/usepass-login-presenter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class UserPassLoginPresenter implements UserPassLoginOutputPort<N
3535
if(role) {
3636
viewModel.role = role;
3737
} else {
38-
viewModel.status = 'cannot_determine_account_role'
38+
viewModel.role = Role.USER
3939
}
4040

4141
const sessionUser: SessionUser = {

0 commit comments

Comments
 (0)