コード例 #1
0
        public Password GenerateOneTimePassword([FromBody] Member member)
        {
            if (string.IsNullOrWhiteSpace(member.MemberId))
            {
                throw new Exception("Invalid member Id");
            }

            var oneTimePassword = _passwordHandler.GenerateOneTimePassword(member, DateTime.Now.AddSeconds(30));

            return(oneTimePassword);
        }