mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 13:21:43 +01:00
optional password
This commit is contained in:
parent
2e296c00d5
commit
9f723782ab
@ -1,5 +1,5 @@
|
||||
import { Expose, Transform } from 'class-transformer';
|
||||
import { ArrayMaxSize, ArrayMinSize, IsArray, IsString, MaxLength } from 'class-validator';
|
||||
import { ArrayMaxSize, ArrayMinSize, IsArray, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
|
||||
import { eRequestMethod } from '../enums/eRequestMethod';
|
||||
import { IsBitcoinAddress } from '../validators/bitcoin-address.validator';
|
||||
@ -35,7 +35,8 @@ export class AuthorizationMessage extends StratumBaseMessage {
|
||||
return obj.params[1];
|
||||
})
|
||||
@MaxLength(64)
|
||||
public password: string;
|
||||
@IsOptional()
|
||||
public password?: string;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
Loading…
x
Reference in New Issue
Block a user