Skip to content

Commit

Permalink
replace username with first and last names in create account API to b…
Browse files Browse the repository at this point in the history
…etter match django auth backend
  • Loading branch information
slogan621 committed Apr 5, 2021
1 parent 2895080 commit 5d00f29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public Object signOut() {
return m_lock;
}

public Object createUser(String username, String password, String eMail, String pin) {
public Object createUser(String first, String last, String password, String eMail, String pin) {

VolleySingleton volley = VolleySingleton.getInstance();

Expand All @@ -201,7 +201,8 @@ public Object createUser(String username, String password, String eMail, String
JSONObject data = new JSONObject();

try {
data.put("username", username);
data.put("first", first);
data.put("last", last);
data.put("password", password);
data.put("email", eMail);
data.put("pin", pin);
Expand Down

0 comments on commit 5d00f29

Please sign in to comment.