Fix add initial_device_display_name on register
authorAjay Bura <ajbura@gmail.com>
Thu, 11 Nov 2021 11:26:36 +0000 (16:56 +0530)
committerAjay Bura <ajbura@gmail.com>
Thu, 11 Nov 2021 11:26:36 +0000 (16:56 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/client/action/auth.js

index 5631164cb48dbdd17d26b5a59ff19115ba8119cf..f9be13bc0ecc95f01225c5fc32ff9d1e1bdfdaaf 100644 (file)
@@ -75,7 +75,10 @@ async function completeRegisterStage(
 
   try {
     const result = await tempClient.registerRequest({
-      username, password, auth,
+      username,
+      password,
+      auth,
+      initial_device_display_name: cons.DEVICE_DISPLAY_NAME,
     });
     const data = { completed: result.completed || [] };
     if (result.access_token) {