Skip to content

Commit 8a2704f

Browse files
committed
updating signin fields to use mobile and drop username
1 parent dd2e2c6 commit 8a2704f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/src/main/java/com/tuti/api/authentication/SignInRequest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
public class SignInRequest {
66
private String username;
77
private String password;
8+
private String mobile;
89

910
public String getSignature() {
1011
return signature;
@@ -40,11 +41,18 @@ public String getUsername() {
4041
return username;
4142
}
4243

43-
public SignInRequest(String username, String password) {
44-
this.username = username;
44+
/**
45+
* Use to sign in a user given their mobile number and password.
46+
* @param mobile
47+
* @param password
48+
*/
49+
public SignInRequest(String mobile, String password) {
50+
this.username = mobile;
4551
this.password = password;
52+
this.mobile = mobile;
4653
}
4754

55+
4856
public SignInRequest setUsername(String username) {
4957
this.username = username;
5058
return this;

0 commit comments

Comments
 (0)