mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 09:36:00 +00:00
SYNC: trim license
This commit is contained in:
@@ -200,7 +200,7 @@ module.exports = {
|
|||||||
|
|
||||||
saveLicenseKey_meta: true,
|
saveLicenseKey_meta: true,
|
||||||
async saveLicenseKey({ licenseKey }) {
|
async saveLicenseKey({ licenseKey }) {
|
||||||
const decoded = jwt.decode(licenseKey);
|
const decoded = jwt.decode(licenseKey?.trim());
|
||||||
if (!decoded) {
|
if (!decoded) {
|
||||||
return {
|
return {
|
||||||
status: 'error',
|
status: 'error',
|
||||||
|
|||||||
Reference in New Issue
Block a user