Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강동현
2021-06-09 22:09:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8e444de7ad5593c5f311bfc0340d8f8976a53f04
8e444de7
1 parent
42b9c8ce
닉네임 제약 조건 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
server/connection/Connection.ts
server/connection/Connection.ts
View file @
8e444de
...
...
@@ -77,6 +77,10 @@ export class Connection {
private
handleLogin
(
message
:
ServerInboundMessage
<
"login"
>
):
ServerResponse
<
"login"
>
{
if
(
message
.
nickname
.
length
>
12
||
message
.
nickname
.
trim
().
length
===
0
)
{
return
{
ok
:
false
};
}
this
.
user
=
new
User
(
message
.
nickname
,
this
);
// console.log(`User ${message.username} has logged in!`);
...
...
Please
register
or
login
to post a comment