diff options
| author | 2022-12-04 21:26:24 +0100 | |
|---|---|---|
| committer | 2022-12-04 21:26:24 +0100 | |
| commit | 48ebc54b6eabf16fb5ab34618eb4b4de4f8b5fd7 (patch) | |
| tree | 861c34d7df89344d605a6cba82093835c3dcfe68 /main.c | |
| parent | New function new_password(). (diff) | |
| download | snac2-48ebc54b6eabf16fb5ab34618eb4b4de4f8b5fd7.tar.gz snac2-48ebc54b6eabf16fb5ab34618eb4b4de4f8b5fd7.tar.xz snac2-48ebc54b6eabf16fb5ab34618eb4b4de4f8b5fd7.zip | |
New command line option 'resetpwd'.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 17 |
1 files changed, 5 insertions, 12 deletions
| @@ -24,21 +24,10 @@ int usage(void) | |||
| 24 | printf("queue {basedir} {uid} Processes a user queue\n"); | 24 | printf("queue {basedir} {uid} Processes a user queue\n"); |
| 25 | printf("follow {basedir} {uid} {actor} Follows an actor\n"); | 25 | printf("follow {basedir} {uid} {actor} Follows an actor\n"); |
| 26 | printf("unfollow {basedir} {uid} {actor} Unfollows an actor\n"); | 26 | printf("unfollow {basedir} {uid} {actor} Unfollows an actor\n"); |
| 27 | |||
| 28 | // printf("check {basedir} [{uid}] Checks the database\n"); | ||
| 29 | |||
| 30 | // printf("update {basedir} {uid} Sends a user update to followers\n"); | ||
| 31 | // printf("passwd {basedir} {uid} Sets the password for {uid}\n"); | ||
| 32 | // printf("unfollow {basedir} {uid} {actor} Unfollows an actor\n"); | ||
| 33 | // printf("mute {basedir} {uid} {actor} Mutes an actor\n"); | ||
| 34 | // printf("unmute {basedir} {uid} {actor} Unmutes an actor\n"); | ||
| 35 | // printf("like {basedir} {uid} {url} Likes an url\n"); | ||
| 36 | // printf("announce {basedir} {uid} {url} Announces (boosts) an url\n"); | ||
| 37 | // printf("note {basedir} {uid} {'text'} Sends a note to followers\n"); | ||
| 38 | |||
| 39 | printf("request {basedir} {uid} {url} Requests an object\n"); | 27 | printf("request {basedir} {uid} {url} Requests an object\n"); |
| 40 | printf("actor {basedir} {uid} {url} Requests an actor\n"); | 28 | printf("actor {basedir} {uid} {url} Requests an actor\n"); |
| 41 | printf("note {basedir} {uid} {'text'} Sends a note to followers\n"); | 29 | printf("note {basedir} {uid} {'text'} Sends a note to followers\n"); |
| 30 | printf("resetpwd {basedir} {uid} Resets the password of a user\n"); | ||
| 42 | 31 | ||
| 43 | return 1; | 32 | return 1; |
| 44 | } | 33 | } |
| @@ -150,6 +139,10 @@ int main(int argc, char *argv[]) | |||
| 150 | return 1; | 139 | return 1; |
| 151 | } | 140 | } |
| 152 | 141 | ||
| 142 | if (strcmp(cmd, "resetpwd") == 0) { | ||
| 143 | return resetpwd(&snac); | ||
| 144 | } | ||
| 145 | |||
| 153 | if (strcmp(cmd, "queue") == 0) { | 146 | if (strcmp(cmd, "queue") == 0) { |
| 154 | process_queue(&snac); | 147 | process_queue(&snac); |
| 155 | return 0; | 148 | return 0; |