How to get a value from a database based on a value from the same row, but different column - pls help!!!!!!!!!!

I modified the front end code. The API documents indicated that the wixlogin is deprecated and they showed a newer way to login the user.

Don’t forget the async at the beginning of the function. I didn’t see it in your example.

export async function loginTeacher_click(event) {