This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from schul-cloud/109-password-recovery-new
109 - Password recovery feature added
- Loading branch information
Showing
17 changed files
with
529 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
app/src/main/java/org/schulcloud/mobile/data/model/Account.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package org.schulcloud.mobile.data.model; | ||
|
||
import io.realm.RealmModel; | ||
|
||
import io.realm.annotations.PrimaryKey; | ||
import io.realm.annotations.RealmClass; | ||
|
||
@RealmClass | ||
public class Account implements RealmModel { | ||
@PrimaryKey | ||
public String _id; | ||
public String username; | ||
public String password; | ||
public String updatedAt; | ||
public String createdAt; | ||
public User userId; | ||
|
||
|
||
public String get_id() { | ||
return _id; | ||
} | ||
|
||
public void set_id(String _id) { | ||
this._id = _id; | ||
} | ||
|
||
public void setUsername(String username){this.username = username;} | ||
|
||
public String getUsername(){return this.username;} | ||
|
||
public void setPassword(String password){} | ||
|
||
public String getUpdatedAt(){return this.updatedAt;} | ||
|
||
public void setUpdatedAt(String updatedAt){this.updatedAt = updatedAt;} | ||
|
||
public String getCreatedAt(){return this.createdAt;} | ||
|
||
public void setCreatedAt(String createdAt){this.createdAt = createdAt;} | ||
|
||
public User getUserId(){return this.userId;} | ||
|
||
public void setUserId(User userId){this.userId = userId;} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/org/schulcloud/mobile/data/model/requestBodies/ResetData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.schulcloud.mobile.data.model.requestBodies; | ||
|
||
public class ResetData { | ||
String accountId; | ||
String password; | ||
|
||
public ResetData(String accountId,String password){ | ||
this.accountId = accountId; | ||
this.password = password; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/org/schulcloud/mobile/data/model/requestBodies/ResetRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.schulcloud.mobile.data.model.requestBodies; | ||
|
||
public class ResetRequest { | ||
public String username; | ||
|
||
public ResetRequest(String username){ | ||
this.username = username; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/org/schulcloud/mobile/data/model/responseBodies/ResetResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.schulcloud.mobile.data.model.responseBodies; | ||
|
||
public class ResetResponse { | ||
public String _id; | ||
public String account; | ||
public String updatedAt; | ||
public String createdAt; | ||
public boolean changed; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.