main
parent
bf8c75f770
commit
766a2ad111
@ -1,414 +1,414 @@ |
|||||||
# ---> VisualStudio |
# ---> VisualStudio |
||||||
## Ignore Visual Studio temporary files, build results, and |
## Ignore Visual Studio temporary files, build results, and |
||||||
## files generated by popular Visual Studio add-ons. |
## files generated by popular Visual Studio add-ons. |
||||||
## |
## |
||||||
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore |
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore |
||||||
|
|
||||||
# User-specific files |
# User-specific files |
||||||
*.rsuser |
*.rsuser |
||||||
*.suo |
*.suo |
||||||
*.user |
*.user |
||||||
*.userosscache |
*.userosscache |
||||||
*.sln.docstates |
*.sln.docstates |
||||||
|
|
||||||
# User-specific files (MonoDevelop/Xamarin Studio) |
# User-specific files (MonoDevelop/Xamarin Studio) |
||||||
*.userprefs |
*.userprefs |
||||||
|
|
||||||
# Mono auto generated files |
# Mono auto generated files |
||||||
mono_crash.* |
mono_crash.* |
||||||
|
|
||||||
# Build results |
# Build results |
||||||
[Dd]ebug/ |
[Dd]ebug/ |
||||||
[Dd]ebugPublic/ |
[Dd]ebugPublic/ |
||||||
[Rr]elease/ |
[Rr]elease/ |
||||||
[Rr]eleases/ |
[Rr]eleases/ |
||||||
x64/ |
x64/ |
||||||
x86/ |
x86/ |
||||||
[Ww][Ii][Nn]32/ |
[Ww][Ii][Nn]32/ |
||||||
[Aa][Rr][Mm]/ |
[Aa][Rr][Mm]/ |
||||||
[Aa][Rr][Mm]64/ |
[Aa][Rr][Mm]64/ |
||||||
bld/ |
bld/ |
||||||
[Bb]in/ |
[Bb]in/ |
||||||
[Oo]bj/ |
[Oo]bj/ |
||||||
[Ll]og/ |
[Ll]og/ |
||||||
[Ll]ogs/ |
[Ll]ogs/ |
||||||
|
|
||||||
# Visual Studio 2015/2017 cache/options directory |
# Visual Studio 2015/2017 cache/options directory |
||||||
.vs/ |
.vs/ |
||||||
# Uncomment if you have tasks that create the project's static files in wwwroot |
# Uncomment if you have tasks that create the project's static files in wwwroot |
||||||
#wwwroot/ |
#wwwroot/ |
||||||
|
|
||||||
# Visual Studio 2017 auto generated files |
# Visual Studio 2017 auto generated files |
||||||
Generated\ Files/ |
Generated\ Files/ |
||||||
|
|
||||||
# MSTest test Results |
# MSTest test Results |
||||||
[Tt]est[Rr]esult*/ |
[Tt]est[Rr]esult*/ |
||||||
[Bb]uild[Ll]og.* |
[Bb]uild[Ll]og.* |
||||||
|
|
||||||
# NUnit |
# NUnit |
||||||
*.VisualState.xml |
*.VisualState.xml |
||||||
TestResult.xml |
TestResult.xml |
||||||
nunit-*.xml |
nunit-*.xml |
||||||
|
|
||||||
# Build Results of an ATL Project |
# Build Results of an ATL Project |
||||||
[Dd]ebugPS/ |
[Dd]ebugPS/ |
||||||
[Rr]eleasePS/ |
[Rr]eleasePS/ |
||||||
dlldata.c |
dlldata.c |
||||||
|
|
||||||
# Benchmark Results |
# Benchmark Results |
||||||
BenchmarkDotNet.Artifacts/ |
BenchmarkDotNet.Artifacts/ |
||||||
|
|
||||||
# .NET Core |
# .NET Core |
||||||
project.lock.json |
project.lock.json |
||||||
project.fragment.lock.json |
project.fragment.lock.json |
||||||
artifacts/ |
artifacts/ |
||||||
|
|
||||||
# ASP.NET Scaffolding |
# ASP.NET Scaffolding |
||||||
ScaffoldingReadMe.txt |
ScaffoldingReadMe.txt |
||||||
|
|
||||||
# StyleCop |
# StyleCop |
||||||
StyleCopReport.xml |
StyleCopReport.xml |
||||||
|
|
||||||
# Files built by Visual Studio |
# Files built by Visual Studio |
||||||
*_i.c |
*_i.c |
||||||
*_p.c |
*_p.c |
||||||
*_h.h |
*_h.h |
||||||
*.ilk |
*.ilk |
||||||
*.meta |
*.meta |
||||||
*.obj |
*.obj |
||||||
*.iobj |
*.iobj |
||||||
*.pch |
*.pch |
||||||
*.pdb |
*.pdb |
||||||
*.ipdb |
*.ipdb |
||||||
*.pgc |
*.pgc |
||||||
*.pgd |
*.pgd |
||||||
*.rsp |
*.rsp |
||||||
*.sbr |
*.sbr |
||||||
*.tlb |
*.tlb |
||||||
*.tli |
*.tli |
||||||
*.tlh |
*.tlh |
||||||
*.tmp |
*.tmp |
||||||
*.tmp_proj |
*.tmp_proj |
||||||
*_wpftmp.csproj |
*_wpftmp.csproj |
||||||
*.log |
*.log |
||||||
*.tlog |
*.tlog |
||||||
*.vspscc |
*.vspscc |
||||||
*.vssscc |
*.vssscc |
||||||
.builds |
.builds |
||||||
*.pidb |
*.pidb |
||||||
*.svclog |
*.svclog |
||||||
*.scc |
*.scc |
||||||
|
|
||||||
# Chutzpah Test files |
# Chutzpah Test files |
||||||
_Chutzpah* |
_Chutzpah* |
||||||
|
|
||||||
# Visual C++ cache files |
# Visual C++ cache files |
||||||
ipch/ |
ipch/ |
||||||
*.aps |
*.aps |
||||||
*.ncb |
*.ncb |
||||||
*.opendb |
*.opendb |
||||||
*.opensdf |
*.opensdf |
||||||
*.sdf |
*.sdf |
||||||
*.cachefile |
*.cachefile |
||||||
*.VC.db |
*.VC.db |
||||||
*.VC.VC.opendb |
*.VC.VC.opendb |
||||||
|
|
||||||
# Visual Studio profiler |
# Visual Studio profiler |
||||||
*.psess |
*.psess |
||||||
*.vsp |
*.vsp |
||||||
*.vspx |
*.vspx |
||||||
*.sap |
*.sap |
||||||
|
|
||||||
# Visual Studio Trace Files |
# Visual Studio Trace Files |
||||||
*.e2e |
*.e2e |
||||||
|
|
||||||
# TFS 2012 Local Workspace |
# TFS 2012 Local Workspace |
||||||
$tf/ |
$tf/ |
||||||
|
|
||||||
# Guidance Automation Toolkit |
# Guidance Automation Toolkit |
||||||
*.gpState |
*.gpState |
||||||
|
|
||||||
# ReSharper is a .NET coding add-in |
# ReSharper is a .NET coding add-in |
||||||
_ReSharper*/ |
_ReSharper*/ |
||||||
*.[Rr]e[Ss]harper |
*.[Rr]e[Ss]harper |
||||||
*.DotSettings.user |
*.DotSettings.user |
||||||
|
|
||||||
# TeamCity is a build add-in |
# TeamCity is a build add-in |
||||||
_TeamCity* |
_TeamCity* |
||||||
|
|
||||||
# DotCover is a Code Coverage Tool |
# DotCover is a Code Coverage Tool |
||||||
*.dotCover |
*.dotCover |
||||||
|
|
||||||
# AxoCover is a Code Coverage Tool |
# AxoCover is a Code Coverage Tool |
||||||
.axoCover/* |
.axoCover/* |
||||||
!.axoCover/settings.json |
!.axoCover/settings.json |
||||||
|
|
||||||
# Coverlet is a free, cross platform Code Coverage Tool |
# Coverlet is a free, cross platform Code Coverage Tool |
||||||
coverage*.json |
coverage*.json |
||||||
coverage*.xml |
coverage*.xml |
||||||
coverage*.info |
coverage*.info |
||||||
|
|
||||||
# Visual Studio code coverage results |
# Visual Studio code coverage results |
||||||
*.coverage |
*.coverage |
||||||
*.coveragexml |
*.coveragexml |
||||||
|
|
||||||
# NCrunch |
# NCrunch |
||||||
_NCrunch_* |
_NCrunch_* |
||||||
.*crunch*.local.xml |
.*crunch*.local.xml |
||||||
nCrunchTemp_* |
nCrunchTemp_* |
||||||
|
|
||||||
# MightyMoose |
# MightyMoose |
||||||
*.mm.* |
*.mm.* |
||||||
AutoTest.Net/ |
AutoTest.Net/ |
||||||
|
|
||||||
# Web workbench (sass) |
# Web workbench (sass) |
||||||
.sass-cache/ |
.sass-cache/ |
||||||
|
|
||||||
# Installshield output folder |
# Installshield output folder |
||||||
[Ee]xpress/ |
[Ee]xpress/ |
||||||
|
|
||||||
# DocProject is a documentation generator add-in |
# DocProject is a documentation generator add-in |
||||||
DocProject/buildhelp/ |
DocProject/buildhelp/ |
||||||
DocProject/Help/*.HxT |
DocProject/Help/*.HxT |
||||||
DocProject/Help/*.HxC |
DocProject/Help/*.HxC |
||||||
DocProject/Help/*.hhc |
DocProject/Help/*.hhc |
||||||
DocProject/Help/*.hhk |
DocProject/Help/*.hhk |
||||||
DocProject/Help/*.hhp |
DocProject/Help/*.hhp |
||||||
DocProject/Help/Html2 |
DocProject/Help/Html2 |
||||||
DocProject/Help/html |
DocProject/Help/html |
||||||
|
|
||||||
# Click-Once directory |
# Click-Once directory |
||||||
publish/ |
publish/ |
||||||
|
|
||||||
# Publish Web Output |
# Publish Web Output |
||||||
*.[Pp]ublish.xml |
*.[Pp]ublish.xml |
||||||
*.azurePubxml |
*.azurePubxml |
||||||
# Note: Comment the next line if you want to checkin your web deploy settings, |
# Note: Comment the next line if you want to checkin your web deploy settings, |
||||||
# but database connection strings (with potential passwords) will be unencrypted |
# but database connection strings (with potential passwords) will be unencrypted |
||||||
*.pubxml |
*.pubxml |
||||||
*.publishproj |
*.publishproj |
||||||
|
|
||||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to |
# Microsoft Azure Web App publish settings. Comment the next line if you want to |
||||||
# checkin your Azure Web App publish settings, but sensitive information contained |
# checkin your Azure Web App publish settings, but sensitive information contained |
||||||
# in these scripts will be unencrypted |
# in these scripts will be unencrypted |
||||||
PublishScripts/ |
PublishScripts/ |
||||||
|
|
||||||
# NuGet Packages |
# NuGet Packages |
||||||
*.nupkg |
*.nupkg |
||||||
# NuGet Symbol Packages |
# NuGet Symbol Packages |
||||||
*.snupkg |
*.snupkg |
||||||
# The packages folder can be ignored because of Package Restore |
# The packages folder can be ignored because of Package Restore |
||||||
**/[Pp]ackages/* |
**/[Pp]ackages/* |
||||||
# except build/, which is used as an MSBuild target. |
# except build/, which is used as an MSBuild target. |
||||||
!**/[Pp]ackages/build/ |
!**/[Pp]ackages/build/ |
||||||
# Uncomment if necessary however generally it will be regenerated when needed |
# Uncomment if necessary however generally it will be regenerated when needed |
||||||
#!**/[Pp]ackages/repositories.config |
#!**/[Pp]ackages/repositories.config |
||||||
# NuGet v3's project.json files produces more ignorable files |
# NuGet v3's project.json files produces more ignorable files |
||||||
*.nuget.props |
*.nuget.props |
||||||
*.nuget.targets |
*.nuget.targets |
||||||
|
|
||||||
# Microsoft Azure Build Output |
# Microsoft Azure Build Output |
||||||
csx/ |
csx/ |
||||||
*.build.csdef |
*.build.csdef |
||||||
|
|
||||||
# Microsoft Azure Emulator |
# Microsoft Azure Emulator |
||||||
ecf/ |
ecf/ |
||||||
rcf/ |
rcf/ |
||||||
|
|
||||||
# Windows Store app package directories and files |
# Windows Store app package directories and files |
||||||
AppPackages/ |
AppPackages/ |
||||||
BundleArtifacts/ |
BundleArtifacts/ |
||||||
Package.StoreAssociation.xml |
Package.StoreAssociation.xml |
||||||
_pkginfo.txt |
_pkginfo.txt |
||||||
*.appx |
*.appx |
||||||
*.appxbundle |
*.appxbundle |
||||||
*.appxupload |
*.appxupload |
||||||
|
|
||||||
# Visual Studio cache files |
# Visual Studio cache files |
||||||
# files ending in .cache can be ignored |
# files ending in .cache can be ignored |
||||||
*.[Cc]ache |
*.[Cc]ache |
||||||
# but keep track of directories ending in .cache |
# but keep track of directories ending in .cache |
||||||
!?*.[Cc]ache/ |
!?*.[Cc]ache/ |
||||||
|
|
||||||
# Others |
# Others |
||||||
ClientBin/ |
ClientBin/ |
||||||
~$* |
~$* |
||||||
*~ |
*~ |
||||||
*.dbmdl |
*.dbmdl |
||||||
*.dbproj.schemaview |
*.dbproj.schemaview |
||||||
*.jfm |
*.jfm |
||||||
*.pfx |
*.pfx |
||||||
*.publishsettings |
*.publishsettings |
||||||
orleans.codegen.cs |
orleans.codegen.cs |
||||||
|
|
||||||
# Including strong name files can present a security risk |
# Including strong name files can present a security risk |
||||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424) |
# (https://github.com/github/gitignore/pull/2483#issue-259490424) |
||||||
#*.snk |
#*.snk |
||||||
|
|
||||||
# Since there are multiple workflows, uncomment next line to ignore bower_components |
# Since there are multiple workflows, uncomment next line to ignore bower_components |
||||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
||||||
#bower_components/ |
#bower_components/ |
||||||
|
|
||||||
# RIA/Silverlight projects |
# RIA/Silverlight projects |
||||||
Generated_Code/ |
Generated_Code/ |
||||||
|
|
||||||
# Backup & report files from converting an old project file |
# Backup & report files from converting an old project file |
||||||
# to a newer Visual Studio version. Backup files are not needed, |
# to a newer Visual Studio version. Backup files are not needed, |
||||||
# because we have git ;-) |
# because we have git ;-) |
||||||
_UpgradeReport_Files/ |
_UpgradeReport_Files/ |
||||||
Backup*/ |
Backup*/ |
||||||
UpgradeLog*.XML |
UpgradeLog*.XML |
||||||
UpgradeLog*.htm |
UpgradeLog*.htm |
||||||
ServiceFabricBackup/ |
ServiceFabricBackup/ |
||||||
*.rptproj.bak |
*.rptproj.bak |
||||||
|
|
||||||
# SQL Server files |
# SQL Server files |
||||||
*.mdf |
*.mdf |
||||||
*.ldf |
*.ldf |
||||||
*.ndf |
*.ndf |
||||||
|
|
||||||
# Business Intelligence projects |
# Business Intelligence projects |
||||||
*.rdl.data |
*.rdl.data |
||||||
*.bim.layout |
*.bim.layout |
||||||
*.bim_*.settings |
*.bim_*.settings |
||||||
*.rptproj.rsuser |
*.rptproj.rsuser |
||||||
*- [Bb]ackup.rdl |
*- [Bb]ackup.rdl |
||||||
*- [Bb]ackup ([0-9]).rdl |
*- [Bb]ackup ([0-9]).rdl |
||||||
*- [Bb]ackup ([0-9][0-9]).rdl |
*- [Bb]ackup ([0-9][0-9]).rdl |
||||||
|
|
||||||
# Microsoft Fakes |
# Microsoft Fakes |
||||||
FakesAssemblies/ |
FakesAssemblies/ |
||||||
|
|
||||||
# GhostDoc plugin setting file |
# GhostDoc plugin setting file |
||||||
*.GhostDoc.xml |
*.GhostDoc.xml |
||||||
|
|
||||||
# Node.js Tools for Visual Studio |
# Node.js Tools for Visual Studio |
||||||
.ntvs_analysis.dat |
.ntvs_analysis.dat |
||||||
node_modules/ |
node_modules/ |
||||||
|
|
||||||
# Visual Studio 6 build log |
# Visual Studio 6 build log |
||||||
*.plg |
*.plg |
||||||
|
|
||||||
# Visual Studio 6 workspace options file |
# Visual Studio 6 workspace options file |
||||||
*.opt |
*.opt |
||||||
|
|
||||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) |
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) |
||||||
*.vbw |
*.vbw |
||||||
|
|
||||||
# Visual Studio 6 auto-generated project file (contains which files were open etc.) |
# Visual Studio 6 auto-generated project file (contains which files were open etc.) |
||||||
*.vbp |
*.vbp |
||||||
|
|
||||||
# Visual Studio 6 workspace and project file (working project files containing files to include in project) |
# Visual Studio 6 workspace and project file (working project files containing files to include in project) |
||||||
*.dsw |
*.dsw |
||||||
*.dsp |
*.dsp |
||||||
|
|
||||||
# Visual Studio 6 technical files |
# Visual Studio 6 technical files |
||||||
*.ncb |
*.ncb |
||||||
*.aps |
*.aps |
||||||
|
|
||||||
# Visual Studio LightSwitch build output |
# Visual Studio LightSwitch build output |
||||||
**/*.HTMLClient/GeneratedArtifacts |
**/*.HTMLClient/GeneratedArtifacts |
||||||
**/*.DesktopClient/GeneratedArtifacts |
**/*.DesktopClient/GeneratedArtifacts |
||||||
**/*.DesktopClient/ModelManifest.xml |
**/*.DesktopClient/ModelManifest.xml |
||||||
**/*.Server/GeneratedArtifacts |
**/*.Server/GeneratedArtifacts |
||||||
**/*.Server/ModelManifest.xml |
**/*.Server/ModelManifest.xml |
||||||
_Pvt_Extensions |
_Pvt_Extensions |
||||||
|
|
||||||
# Paket dependency manager |
# Paket dependency manager |
||||||
.paket/paket.exe |
.paket/paket.exe |
||||||
paket-files/ |
paket-files/ |
||||||
|
|
||||||
# FAKE - F# Make |
# FAKE - F# Make |
||||||
.fake/ |
.fake/ |
||||||
|
|
||||||
# CodeRush personal settings |
# CodeRush personal settings |
||||||
.cr/personal |
.cr/personal |
||||||
|
|
||||||
# Python Tools for Visual Studio (PTVS) |
# Python Tools for Visual Studio (PTVS) |
||||||
__pycache__/ |
__pycache__/ |
||||||
*.pyc |
*.pyc |
||||||
|
|
||||||
# Cake - Uncomment if you are using it |
# Cake - Uncomment if you are using it |
||||||
# tools/** |
# tools/** |
||||||
# !tools/packages.config |
# !tools/packages.config |
||||||
|
|
||||||
# Tabs Studio |
# Tabs Studio |
||||||
*.tss |
*.tss |
||||||
|
|
||||||
# Telerik's JustMock configuration file |
# Telerik's JustMock configuration file |
||||||
*.jmconfig |
*.jmconfig |
||||||
|
|
||||||
# BizTalk build output |
# BizTalk build output |
||||||
*.btp.cs |
*.btp.cs |
||||||
*.btm.cs |
*.btm.cs |
||||||
*.odx.cs |
*.odx.cs |
||||||
*.xsd.cs |
*.xsd.cs |
||||||
|
|
||||||
# OpenCover UI analysis results |
# OpenCover UI analysis results |
||||||
OpenCover/ |
OpenCover/ |
||||||
|
|
||||||
# Azure Stream Analytics local run output |
# Azure Stream Analytics local run output |
||||||
ASALocalRun/ |
ASALocalRun/ |
||||||
|
|
||||||
# MSBuild Binary and Structured Log |
# MSBuild Binary and Structured Log |
||||||
*.binlog |
*.binlog |
||||||
|
|
||||||
# NVidia Nsight GPU debugger configuration file |
# NVidia Nsight GPU debugger configuration file |
||||||
*.nvuser |
*.nvuser |
||||||
|
|
||||||
# MFractors (Xamarin productivity tool) working folder |
# MFractors (Xamarin productivity tool) working folder |
||||||
.mfractor/ |
.mfractor/ |
||||||
|
|
||||||
# Local History for Visual Studio |
# Local History for Visual Studio |
||||||
.localhistory/ |
.localhistory/ |
||||||
|
|
||||||
# Visual Studio History (VSHistory) files |
# Visual Studio History (VSHistory) files |
||||||
.vshistory/ |
.vshistory/ |
||||||
|
|
||||||
# BeatPulse healthcheck temp database |
# BeatPulse healthcheck temp database |
||||||
healthchecksdb |
healthchecksdb |
||||||
|
|
||||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017 |
# Backup folder for Package Reference Convert tool in Visual Studio 2017 |
||||||
MigrationBackup/ |
MigrationBackup/ |
||||||
|
|
||||||
# Ionide (cross platform F# VS Code tools) working folder |
# Ionide (cross platform F# VS Code tools) working folder |
||||||
.ionide/ |
.ionide/ |
||||||
|
|
||||||
# Fody - auto-generated XML schema |
# Fody - auto-generated XML schema |
||||||
FodyWeavers.xsd |
FodyWeavers.xsd |
||||||
|
|
||||||
# VS Code files for those working on multiple tools |
# VS Code files for those working on multiple tools |
||||||
.vscode/* |
.vscode/* |
||||||
!.vscode/settings.json |
!.vscode/settings.json |
||||||
!.vscode/tasks.json |
!.vscode/tasks.json |
||||||
!.vscode/launch.json |
!.vscode/launch.json |
||||||
!.vscode/extensions.json |
!.vscode/extensions.json |
||||||
*.code-workspace |
*.code-workspace |
||||||
|
|
||||||
# Local History for Visual Studio Code |
# Local History for Visual Studio Code |
||||||
.history/ |
.history/ |
||||||
|
|
||||||
# Windows Installer files from build outputs |
# Windows Installer files from build outputs |
||||||
*.cab |
*.cab |
||||||
*.msi |
*.msi |
||||||
*.msix |
*.msix |
||||||
*.msm |
*.msm |
||||||
*.msp |
*.msp |
||||||
|
|
||||||
# JetBrains Rider |
# JetBrains Rider |
||||||
*.sln.iml |
*.sln.iml |
||||||
|
|
||||||
# ---> VisualStudioCode |
# ---> VisualStudioCode |
||||||
.vscode/* |
.vscode/* |
||||||
!.vscode/settings.json |
!.vscode/settings.json |
||||||
!.vscode/tasks.json |
!.vscode/tasks.json |
||||||
!.vscode/launch.json |
!.vscode/launch.json |
||||||
!.vscode/extensions.json |
!.vscode/extensions.json |
||||||
!.vscode/*.code-snippets |
!.vscode/*.code-snippets |
||||||
|
|
||||||
# Local History for Visual Studio Code |
# Local History for Visual Studio Code |
||||||
.history/ |
.history/ |
||||||
|
|
||||||
# Built Visual Studio Code Extensions |
# Built Visual Studio Code Extensions |
||||||
*.vsix |
*.vsix |
||||||
|
|
||||||
|
@ -1,11 +1,15 @@ |
|||||||
import { AuthService } from './auth.service'; |
import { AuthService } from './auth.service'; |
||||||
import { CreateUserDto } from 'src/users/dto/create-user.dto'; |
import { CreateUserDto } from 'src/users/dto/create-user.dto'; |
||||||
import { LoginUserDto } from 'src/auth/dto/login-user.dto'; |
import { LoginUserDto } from 'src/auth/dto/login-user.dto'; |
||||||
|
import { SuccessResponseDto } from 'src/common/dto/sucees-response.dto'; |
||||||
|
import { LoginResponseDto } from './dto/login-response.dto'; |
||||||
|
import { UsersService } from 'src/users/users.service'; |
||||||
|
import { UserInfoResponseDto } from 'src/users/dto/user-info-response.dto'; |
||||||
export declare class AuthController { |
export declare class AuthController { |
||||||
private readonly authService; |
private readonly authService; |
||||||
constructor(authService: AuthService); |
private userService; |
||||||
signup(dto: CreateUserDto): Promise<import("../users/user.entity").User>; |
constructor(authService: AuthService, userService: UsersService); |
||||||
login(dto: LoginUserDto): Promise<{ |
signup(dto: CreateUserDto): Promise<SuccessResponseDto>; |
||||||
access_token: string; |
login(dto: LoginUserDto): Promise<SuccessResponseDto<LoginResponseDto>>; |
||||||
}>; |
getMe(req: any): Promise<SuccessResponseDto<UserInfoResponseDto>>; |
||||||
} |
} |
||||||
|
@ -1 +1 @@ |
|||||||
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,iDAA6C;AAC7C,kEAA8D;AAC9D,yDAA2D;AAGpD,IAAM,cAAc,GAApB,MAAM,cAAc;IACM;IAA7B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAGnD,AAAN,KAAK,CAAC,MAAM,CAAS,GAAkB;QACnC,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAGK,AAAN,KAAK,CAAC,KAAK,CAAS,GAAiB;QACjC,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;CACJ,CAAA;AAZY,wCAAc;AAIjB;IADL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,+BAAa;;4CAEtC;AAGK;IADL,IAAA,aAAI,EAAC,OAAO,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,6BAAY;;2CAEpC;yBAXQ,cAAc;IAD1B,IAAA,mBAAU,EAAC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;;2CAGpC;AAIK;IAFL,IAAA,YAAG,EAAC,IAAI,CAAC;IACT,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACX,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;2CAGrB;yBApBQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAE2B,0BAAW,EAAuB,4BAAY;GAD/E,cAAc,CAqB1B"} |
@ -1 +1 @@ |
|||||||
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../src/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iDAA6C;AAC7C,uDAAmD;AACnD,wDAAqD;AACrD,qCAAwC;AACxC,2CAA6D;AAC7D,+CAAkD;AAClD,iDAA6C;AAqBtC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAnBtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,0BAAW;YACX,yBAAc;YACd,qBAAY;YACZ,eAAS,CAAC,aAAa,CAAC;gBACtB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,KAAK,EAAE,aAA4B,EAAE,EAAE,CAAC,CAAC;oBACnD,MAAM,EAAE,aAAa,CAAC,GAAG,CAAS,YAAY,CAAC;oBAC/C,WAAW,EAAE;wBACX,SAAS,EAAE,aAAa,CAAC,GAAG,CAAS,gBAAgB,CAAC,IAAI,KAAK;qBAChE;iBACF,CAAC;aACH,CAAC;SACH;QACD,SAAS,EAAE,CAAC,0BAAW,EAAE,0BAAW,CAAC;QACrC,WAAW,EAAE,CAAC,gCAAc,CAAC;KAC9B,CAAC;GACW,UAAU,CAAG"} |
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../src/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iDAA6C;AAC7C,uDAAmD;AACnD,wDAAqD;AACr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gBAAU;GADpE,WAAW,CAwBvB"} |
@ -0,0 +1,5 @@ |
|||||||
|
import { UserInfoResponseDto } from "src/users/dto/user-info-response.dto"; |
||||||
|
export declare class LoginResponseDto { |
||||||
|
access_token: string; |
||||||
|
user: UserInfoResponseDto; |
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
"use strict"; |
||||||
|
Object.defineProperty(exports, "__esModule", { value: true }); |
||||||
|
exports.LoginResponseDto = void 0; |
||||||
|
class LoginResponseDto { |
||||||
|
access_token; |
||||||
|
user; |
||||||
|
} |
||||||
|
exports.LoginResponseDto = LoginResponseDto; |
||||||
|
//# sourceMappingURL=login-response.dto.js.map
|
@ -0,0 +1 @@ |
|||||||
|
{"version":3,"file":"login-response.dto.js","sourceRoot":"","sources":["../../../src/auth/dto/login-response.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,gBAAgB;IACzB,YAAY,CAAS;IACrB,IAAI,CAAsB;CAC7B;AAHD,4CAGC"} |
@ -0,0 +1,7 @@ |
|||||||
|
export declare class SuccessResponseDto<T = any> { |
||||||
|
success: boolean; |
||||||
|
message?: string; |
||||||
|
data?: T; |
||||||
|
static of<T>(data: T, message?: string): SuccessResponseDto<T>; |
||||||
|
static ok(message?: string): SuccessResponseDto<null>; |
||||||
|
} |
@ -1 +1,23 @@ |
|||||||
|
"use strict"; |
||||||
|
Object.defineProperty(exports, "__esModule", { value: true }); |
||||||
|
exports.SuccessResponseDto = void 0; |
||||||
|
class SuccessResponseDto { |
||||||
|
success; |
||||||
|
message; |
||||||
|
data; |
||||||
|
static of(data, message) { |
||||||
|
return { |
||||||
|
success: true, |
||||||
|
data, |
||||||
|
message, |
||||||
|
}; |
||||||
|
} |
||||||
|
static ok(message) { |
||||||
|
return { |
||||||
|
success: true, |
||||||
|
message, |
||||||
|
}; |
||||||
|
} |
||||||
|
} |
||||||
|
exports.SuccessResponseDto = SuccessResponseDto; |
||||||
//# sourceMappingURL=sucees-response.dto.js.map
|
//# sourceMappingURL=sucees-response.dto.js.map
|
@ -1 +1 @@ |
|||||||
{"version":3,"file":"sucees-response.dto.js","sourceRoot":"","sources":["../../../src/common/dto/sucees-response.dto.ts"],"names":[],"mappings":""} |
{"version":3,"file":"sucees-response.dto.js","sourceRoot":"","sources":["../../../src/common/dto/sucees-response.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;IAC3B,OAAO,CAAU;IACjB,OAAO,CAAU;IACjB,IAAI,CAAK;IAET,MAAM,CAAC,EAAE,CAAI,IAAO,EAAE,OAAgB;QAClC,OAAO;YACH,OAAO,EAAE,IAAI;YACb,IAAI;YACJ,OAAO;SACV,CAAC;IACN,CAAC;IAED,MAAM,CAAC,EAAE,CAAC,OAAgB;QACtB,OAAO;YACH,OAAO,EAAE,IAAI;YACb,OAAO;SACV,CAAC;IACN,CAAC;CACJ;AAnBD,gDAmBC"} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
|||||||
|
export declare class UserInfoResponseDto { |
||||||
|
id: number; |
||||||
|
name: string; |
||||||
|
email?: string; |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
"use strict"; |
||||||
|
Object.defineProperty(exports, "__esModule", { value: true }); |
||||||
|
exports.UserInfoResponseDto = void 0; |
||||||
|
class UserInfoResponseDto { |
||||||
|
id; |
||||||
|
name; |
||||||
|
email; |
||||||
|
} |
||||||
|
exports.UserInfoResponseDto = UserInfoResponseDto; |
||||||
|
//# sourceMappingURL=user-info-response.dto.js.map
|
@ -0,0 +1 @@ |
|||||||
|
{"version":3,"file":"user-info-response.dto.js","sourceRoot":"","sources":["../../../src/users/dto/user-info-response.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,mBAAmB;IAC5B,EAAE,CAAS;IACX,IAAI,CAAS;IACb,KAAK,CAAU;CAClB;AAJD,kDAIC"} |
@ -1,7 +1,8 @@ |
|||||||
import { UsersService } from './users.service'; |
import { UsersService } from './users.service'; |
||||||
import { ChangePasswordDto } from './dto/change-password.dto'; |
import { ChangePasswordDto } from './dto/change-password.dto'; |
||||||
|
import { SuccessResponseDto } from 'src/common/dto/sucees-response.dto'; |
||||||
export declare class UsersController { |
export declare class UsersController { |
||||||
private readonly userService; |
private readonly userService; |
||||||
constructor(userService: UsersService); |
constructor(userService: UsersService); |
||||||
changePassword(req: any, dto: ChangePasswordDto): Promise<void>; |
changePassword(req: any, dto: ChangePasswordDto): Promise<SuccessResponseDto>; |
||||||
} |
} |
||||||
|
@ -1 +1 @@ |
|||||||
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../src/users/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAkE;AAClE,mDAA+C;AAC/C,mEAA8D;AAGvD,IAAM,eAAe,GAArB,MAAM,eAAe;IACK;IAA7B,YAA6B,WAAyB;QAAzB,gBAAW,GAAX,WAAW,CAAc;IAAG,CAAC;IAGpD,AAAN,KAAK,CAAC,cAAc,CAAY,GAAG,EAAU,GAAsB;QAC/D,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClB,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AARY,0CAAe;AAIlB;IADL,IAAA,cAAK,EAAC,UAAU,CAAC;IACI,WAAA,IAAA,gBAAO,GAAE,CAAA;IAAO,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAM,uCAAiB;;qDAGlE;0BAPQ,eAAe;IAD3B,IAAA,mBAAU,EAAC,OAAO,CAAC;qCAE0B,4BAAY;GAD7C,eAAe,CAQ3B"} |
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../src/users/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA6E;AAC7E,mDAA+C;AAC/C,mEAA8D;AAC9D,2DAAuD;AACvD,2EAAwE;AAGjE,IAAM,eAAe,GAArB,MAAM,eAAe;IACK;IAA7B,YAA6B,WAAyB;QAAz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AAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/E,IAAI,CAAC,aAAa;YAAE,MAAM,IAAI,8BAAqB,CAAC,sBAAsB,CAAC,CAAC;QAE5E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC;QAEvB,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,sBAAsB,CAAC,EAAU;QACnC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,0BAAiB,CAAC,gBAAgB,CAAC,CAAC;QAEzD,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC;IACN,CAAC;CACJ,CAAA;AA9CY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAEI,WAAA,IAAA,0BAAgB,EAAC,kBAAI,CAAC,CAAA;qCAAe,oBAAU;GADnD,YAAY,CA8CxB"} |
File diff suppressed because it is too large
Load Diff
@ -1,22 +1,33 @@ |
|||||||
import { Body, Controller, Post } from '@nestjs/common'; |
import { Body, Controller, Get, Post, Request, UseGuards } from '@nestjs/common'; |
||||||
import { AuthService } from './auth.service'; |
import { AuthService } from './auth.service'; |
||||||
import { CreateUserDto } from 'src/users/dto/create-user.dto'; |
import { CreateUserDto } from 'src/users/dto/create-user.dto'; |
||||||
import { LoginUserDto } from 'src/auth/dto/login-user.dto'; |
import { LoginUserDto } from 'src/auth/dto/login-user.dto'; |
||||||
import { SuccessResponseDto } from 'src/common/dto/sucees-response.dto'; |
import { SuccessResponseDto } from 'src/common/dto/sucees-response.dto'; |
||||||
|
import { LoginResponseDto } from './dto/login-response.dto'; |
||||||
|
import { UsersService } from 'src/users/users.service'; |
||||||
|
import { JwtAuthGuard } from './jwt-auth.guard'; |
||||||
|
import { UserInfoResponseDto } from 'src/users/dto/user-info-response.dto'; |
||||||
|
|
||||||
@Controller('auth') |
@Controller('auth') |
||||||
export class AuthController { |
export class AuthController { |
||||||
constructor(private readonly authService: AuthService) {} |
constructor(private readonly authService: AuthService, private userService: UsersService) {} |
||||||
|
|
||||||
@Post('signup') |
@Post('signup') |
||||||
async signup(@Body() dto: CreateUserDto): Promise<SuccessResponseDto> { |
async signup(@Body() dto: CreateUserDto): Promise<SuccessResponseDto> { |
||||||
const user = await this.authService.signup(dto); |
const user = await this.authService.signup(dto); |
||||||
return SuccessResponseDto.of(user); |
return SuccessResponseDto.ok(); |
||||||
} |
} |
||||||
|
|
||||||
@Post('login') |
@Post('login') |
||||||
async login(@Body() dto: LoginUserDto): Promise<SuccessResponseDto> { |
async login(@Body() dto: LoginUserDto): Promise<SuccessResponseDto<LoginResponseDto>> { |
||||||
const loginUser = await this.authService.login(dto); |
const loginUser = await this.authService.login(dto); |
||||||
return SuccessResponseDto.of(loginUser); |
return SuccessResponseDto.of(loginUser); |
||||||
} |
} |
||||||
|
|
||||||
|
@Get('me') |
||||||
|
@UseGuards(JwtAuthGuard) |
||||||
|
async getMe(@Request() req): Promise<SuccessResponseDto<UserInfoResponseDto>> { |
||||||
|
const userInfo = await this.userService.findUserInfoByIdOrFail(req.user.userId); |
||||||
|
return SuccessResponseDto.of(userInfo); |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,29 +1,29 @@ |
|||||||
import { Module } from '@nestjs/common'; |
import { Module } from '@nestjs/common'; |
||||||
import { AuthService } from './auth.service'; |
import { AuthService } from './auth.service'; |
||||||
import { AuthController } from './auth.controller'; |
import { AuthController } from './auth.controller'; |
||||||
import { UsersModule } from 'src/users/users.module'; |
import { UsersModule } from 'src/users/users.module'; |
||||||
import { JwtModule } from '@nestjs/jwt'; |
import { JwtModule } from '@nestjs/jwt'; |
||||||
import { ConfigModule, ConfigService } from '@nestjs/config'; |
import { ConfigModule, ConfigService } from '@nestjs/config'; |
||||||
import { PassportModule } from '@nestjs/passport'; |
import { PassportModule } from '@nestjs/passport'; |
||||||
import { JwtStrategy } from './jwt.stratedy'; |
import { JwtStrategy } from './jwt.stratedy'; |
||||||
|
|
||||||
@Module({ |
@Module({ |
||||||
imports: [ |
imports: [ |
||||||
UsersModule, |
UsersModule, |
||||||
PassportModule, |
PassportModule, |
||||||
ConfigModule, |
ConfigModule, |
||||||
JwtModule.registerAsync({ |
JwtModule.registerAsync({ |
||||||
imports: [ConfigModule], |
imports: [ConfigModule], |
||||||
inject: [ConfigService], |
inject: [ConfigService], |
||||||
useFactory: async (configService: ConfigService) => ({ |
useFactory: async (configService: ConfigService) => ({ |
||||||
secret: configService.get<string>('JWT_SECRET'), |
secret: configService.get<string>('JWT_SECRET'), |
||||||
signOptions: { |
signOptions: { |
||||||
expiresIn: configService.get<string>('JWT_EXPIRES_IN') || '60s', |
expiresIn: configService.get<string>('JWT_EXPIRES_IN') || '1h', |
||||||
}, |
}, |
||||||
}), |
}), |
||||||
}) |
}) |
||||||
], |
], |
||||||
providers: [AuthService, JwtStrategy], |
providers: [AuthService, JwtStrategy], |
||||||
controllers: [AuthController] |
controllers: [AuthController] |
||||||
}) |
}) |
||||||
export class AuthModule {} |
export class AuthModule {} |
||||||
|
@ -0,0 +1,6 @@ |
|||||||
|
import { UserInfoResponseDto } from "src/users/dto/user-info-response.dto"; |
||||||
|
|
||||||
|
export class LoginResponseDto { |
||||||
|
access_token: string; |
||||||
|
user: UserInfoResponseDto; |
||||||
|
} |
@ -0,0 +1,5 @@ |
|||||||
|
export class UserInfoResponseDto { |
||||||
|
id: number; |
||||||
|
name: string; |
||||||
|
email?: string; |
||||||
|
} |
@ -1,15 +1,17 @@ |
|||||||
import { Body, Controller, Patch, Request } from '@nestjs/common'; |
import { Body, Controller, Patch, Request, UseGuards } from '@nestjs/common'; |
||||||
import { UsersService } from './users.service'; |
import { UsersService } from './users.service'; |
||||||
import { ChangePasswordDto } from './dto/change-password.dto'; |
import { ChangePasswordDto } from './dto/change-password.dto'; |
||||||
|
import { JwtAuthGuard } from 'src/auth/jwt-auth.guard'; |
||||||
|
import { SuccessResponseDto } from 'src/common/dto/sucees-response.dto'; |
||||||
|
|
||||||
@Controller('users') |
@Controller('users') |
||||||
export class UsersController { |
export class UsersController { |
||||||
constructor(private readonly userService: UsersService) {} |
constructor(private readonly userService: UsersService) {} |
||||||
|
|
||||||
|
@UseGuards(JwtAuthGuard) |
||||||
@Patch('password') |
@Patch('password') |
||||||
async changePassword(@Request() req, @Body() dto: ChangePasswordDto) { |
async changePassword(@Request() req, @Body() dto: ChangePasswordDto): Promise<SuccessResponseDto> { |
||||||
console.log("dd"); |
|
||||||
await this.userService.changePassword(req.user.userId, dto); |
await this.userService.changePassword(req.user.userId, dto); |
||||||
return
|
return SuccessResponseDto.ok(); |
||||||
} |
} |
||||||
} |
} |
||||||
|
@ -1,13 +1,13 @@ |
|||||||
import { Module } from '@nestjs/common'; |
import { Module } from '@nestjs/common'; |
||||||
import { UsersService } from './users.service'; |
import { UsersService } from './users.service'; |
||||||
import { TypeOrmModule } from '@nestjs/typeorm'; |
import { TypeOrmModule } from '@nestjs/typeorm'; |
||||||
import { User } from './user.entity'; |
import { User } from './user.entity'; |
||||||
import { UsersController } from './users.controller'; |
import { UsersController } from './users.controller'; |
||||||
|
|
||||||
@Module({ |
@Module({ |
||||||
imports: [TypeOrmModule.forFeature([User])], |
imports: [TypeOrmModule.forFeature([User])], |
||||||
providers: [UsersService], |
providers: [UsersService], |
||||||
controllers: [UsersController], |
controllers: [UsersController], |
||||||
exports: [UsersService] |
exports: [UsersService] |
||||||
}) |
}) |
||||||
export class UsersModule {} |
export class UsersModule {} |
||||||
|
Loading…
Reference in new issue