X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Finclude%2Fctdl_module.h;h=1d1ac91a0f591525bf4837d50768585819ff9cc8;hb=34fd48d16bdc678356d400eb1584fe3bb13d2cee;hp=3300596fca9d8f7caf04e48fd0b587f95b594be8;hpb=4e959ecec2247e06c2ed484d174c9db421d1b6bf;p=citadel.git diff --git a/citadel/include/ctdl_module.h b/citadel/include/ctdl_module.h index 3300596fc..1d1ac91a0 100644 --- a/citadel/include/ctdl_module.h +++ b/citadel/include/ctdl_module.h @@ -297,6 +297,32 @@ void CtdlSetRelationship(struct visit *newvisit, struct ctdlroom *rel_room); void CtdlMailboxName(char *buf, size_t n, const struct ctdluser *who, const char *prefix); +int CtdlLoginExistingUser(char *authname, char *username); + +/* + * Values which may be returned by CtdlLoginExistingUser() + */ +enum { + pass_ok, + pass_already_logged_in, + pass_no_user, + pass_internal_error, + pass_wrong_password +}; + +int CtdlTryPassword(char *password); +/* + * Values which may be returned by CtdlTryPassword() + */ +enum { + login_ok, + login_already_logged_in, + login_too_many_users, + login_not_found +}; + + + /* * Expose API calls from msgbase.c