added authentication via api key for some limited api methods (fix #64)

This commit is contained in:
Athou
2013-05-01 21:56:59 +02:00
parent 52a8ea1920
commit 5dcc923cf1
14 changed files with 148 additions and 40 deletions

View File

@@ -24,6 +24,9 @@ public class UserModel implements Serializable {
@ApiProperty("user email, if any")
private String email;
@ApiProperty("api key")
private String apiKey;
@ApiProperty(value = "user password, never returned by the api")
private String password;
@@ -81,4 +84,12 @@ public class UserModel implements Serializable {
this.email = email;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
}