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:
@@ -18,6 +18,9 @@ public class ProfileModificationRequest {
|
||||
@ApiProperty(value = "changes password of the user, if specified")
|
||||
private String password;
|
||||
|
||||
@ApiProperty(value = "generate a new api key")
|
||||
private boolean newApiKey;
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@@ -34,4 +37,12 @@ public class ProfileModificationRequest {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public boolean isNewApiKey() {
|
||||
return newApiKey;
|
||||
}
|
||||
|
||||
public void setNewApiKey(boolean newApiKey) {
|
||||
this.newApiKey = newApiKey;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user