Mercurial > hg > orthanc-authorization
comparison Plugin/Token.cpp @ 113:43154740ea2e
wip: checking labels
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 05 Sep 2023 12:48:20 +0200 |
parents | 1a13c4fbc9a1 |
children | 0eed78c1e177 |
comparison
equal
deleted
inserted
replaced
112:572955904411 | 113:43154740ea2e |
---|---|
30 if (key.empty()) | 30 if (key.empty()) |
31 { | 31 { |
32 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | 32 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); |
33 } | 33 } |
34 } | 34 } |
35 | |
36 Token::Token(const Token& other) : | |
37 type_(other.GetType()), | |
38 key_(other.GetKey()) | |
39 { | |
40 if (key_.empty()) | |
41 { | |
42 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | |
43 } | |
44 } | |
45 | |
35 } | 46 } |