Skip to content

Commit be566bb

Browse files
committed
feat: implements login method
1 parent 6d69118 commit be566bb

File tree

1 file changed

+2
-3
lines changed
  • app/src/main/java/com/eps/todoturtle/profile/ui/login

1 file changed

+2
-3
lines changed

app/src/main/java/com/eps/todoturtle/profile/ui/login/LoginUI.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import androidx.compose.ui.text.withStyle
2020
import androidx.compose.ui.tooling.preview.Preview
2121
import androidx.compose.ui.unit.dp
2222
import com.eps.todoturtle.R
23+
import com.eps.todoturtle.mock.MockValues
2324
import com.eps.todoturtle.profile.ui.shared.CenteredPicture
2425
import com.eps.todoturtle.profile.ui.shared.ProfileUI
2526
import com.eps.todoturtle.shared.logic.extensions.bitmapFrom
@@ -43,9 +44,7 @@ fun LoginContent(
4344
val username = rememberSaveable { mutableStateOf("") }
4445
val password = rememberSaveable { mutableStateOf("") }
4546
val loginMethod = login ?: {
46-
// TODO: Change mock true to commented code
47-
// username.value == MockValues.USERNAME.getValue() && password.value == MockValues.PASSWORD.getValue()
48-
true
47+
username.value == MockValues.USERNAME.getValue() && password.value == MockValues.PASSWORD.getValue()
4948
}
5049

5150
Spacer(modifier = Modifier.size(20.dp))

0 commit comments

Comments
 (0)