UFN_PERSONALACCESSTOKENREVOKEDEFAULTREASONMAPPING_DEFAULTREASONCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(25) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 2/6/2025 2:51:38 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=4.0.3901.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_PERSONALACCESSTOKENREVOKEDEFAULTREASONMAPPING_DEFAULTREASONCODE_GETID(@Description nvarchar(25))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'User is inactive' then 0
when 'PAT is expired' then 1
when 'Invalid login' then 2
when 'Too many invalid attempts' then 3
else -1
end
end