decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
30
decomp/schema/RustyHearts_Account/procs/GetAccount.sql
Normal file
30
decomp/schema/RustyHearts_Account/procs/GetAccount.sql
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
CREATE PROCEDURE [dbo].[GetAccount]
|
||||
@Identifier varchar(255)
|
||||
AS
|
||||
BEGIN
|
||||
|
||||
DECLARE @Result varchar(20)
|
||||
DECLARE @AccountExists int;
|
||||
DECLARE @WindyCode varchar(50)
|
||||
DECLARE @AccountPwd varchar(255)
|
||||
|
||||
|
||||
SELECT @AccountExists = COUNT(*) FROM AccountTable
|
||||
WHERE Email = @Identifier OR WindyCode = @Identifier;
|
||||
SELECT @WindyCode = WindyCode FROM AccountTable
|
||||
WHERE Email = @Identifier OR WindyCode = @Identifier;
|
||||
SELECT @AccountPwd = AccountPwd FROM AccountTable
|
||||
WHERE Email = @Identifier OR WindyCode = @Identifier;
|
||||
|
||||
|
||||
-- Check if account exists
|
||||
IF @AccountExists > 0
|
||||
SET @Result = 'AccountExists';
|
||||
ELSE
|
||||
SET @Result = 'AccountNotFound';
|
||||
|
||||
SELECT @Result as Result, @WindyCode as WindyCode, @AccountPwd as AccountPwd;
|
||||
|
||||
END
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue