use of org.haiku.haikudepotserver.api2.model.AuthenticateUserResult in project haikudepotserver by haiku.
the class UserApiImpl method authenticateUser.
@Override
public ResponseEntity<AuthenticateUserResponseEnvelope> authenticateUser(AuthenticateUserRequestEnvelope authenticateUserRequestEnvelope) {
AuthenticateUserRequest requestV1 = new AuthenticateUserRequest();
requestV1.nickname = authenticateUserRequestEnvelope.getNickname();
requestV1.passwordClear = authenticateUserRequestEnvelope.getPasswordClear();
org.haiku.haikudepotserver.api1.model.user.AuthenticateUserResult resultV1 = userApiV1.authenticateUser(requestV1);
return ResponseEntity.ok(new AuthenticateUserResponseEnvelope().result(new AuthenticateUserResult().token(resultV1.token)));
}
Aggregations