/************************************************************
* MultiUser - MultiUser Task/File Support System				*
* ---------------------------------------------------------	*
* Password Management													*
* ---------------------------------------------------------	*
* © Copyright 1993-1994 Geert Uytterhoeven						*
* All Rights Reserved.													*
************************************************************/


#include "Passwd.h"
#include "Server.h"
#include "Misc.h"


	/*
	 *		Change the Password for a User
	 *
	 *		Public Library Function
	 */

BOOL __asm __saveds muPasswd(register __a0 STRPTR oldpwd,
									  register __a1 STRPTR newpwd)
{
	return((BOOL)SendServerPacket(muSAction_Passwd, (LONG)oldpwd, (LONG)newpwd,
											NULL, NULL));
}


	/*
	 *		Check the Password of the current User
	 *
	 *		Public Library Function
	 */

BOOL __asm __saveds muCheckPasswd(register __a0 struct TagItem *taglist)
{
	struct muTags tags;

	InterpreteTagList(taglist, &tags);
	if (tags.Password)
		return((BOOL)SendServerPacket(muSAction_CheckPasswd, (LONG)tags.Password,
												NULL, NULL, NULL));
	else
		return(FALSE);
}
