mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
added authentication via api key for some limited api methods (fix #64)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user