Skip to content

Commit

Permalink
Remove return token for enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Oct 25, 2019
1 parent 86c8a7b commit 632baac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ private ResetPasswordResponse.Builder resetPassword(ResetPasswordRequest request
}
// Generate reset
try {
String token = generateToken(user);
builder.setToken(validateNull(token));
generateToken(user);
} catch (Exception e) {
builder.setResponseType(ResponseType.ERROR);
throw new AdempiereException(e.getMessage());
Expand Down
3 changes: 1 addition & 2 deletions src/main/proto/enrollment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ message User {

// Reset Password Response
message ResetPasswordResponse {
string token = 1;
enum ResponseType {
OK = 0;
USER_NOT_FOUND = 1;
TOKEN_NOT_FOUND = 2;
ERROR = 3;
}
ResponseType responseType = 2;
ResponseType responseType = 1;
}

0 comments on commit 632baac

Please sign in to comment.