[ARVADOS-WORKBENCH2] updated: 1.4.1-306-g2c1a7eb9

Git user git at public.arvados.org
Tue Apr 7 21:52:48 UTC 2020


Summary of changes:
 src/views-components/login-form/login-form.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

       via  2c1a7eb9248df217c86caf1685a05d5a2aaaac84 (commit)
      from  c217a294d9f4ce79bb8140dba54ad2ed22961bab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 2c1a7eb9248df217c86caf1685a05d5a2aaaac84
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Tue Apr 7 18:52:10 2020 -0300

    16212: Assembles v2 token for authentication.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/src/views-components/login-form/login-form.tsx b/src/views-components/login-form/login-form.tsx
index 160a1bb8..b64ae0b0 100644
--- a/src/views-components/login-form/login-form.tsx
+++ b/src/views-components/login-form/login-form.tsx
@@ -85,8 +85,8 @@ export const LoginForm = withStyles(styles)(
             handleSubmit(username, password)
             .then((response) => {
                 setSubmitting(false);
-                const apiToken = response.data.api_token;
-                if (apiToken) {
+                if (response.data.uuid && response.data.api_token) {
+                    const apiToken = `v2/${response.data.uuid}/${response.data.api_token}`;
                     dispatch<any>(saveApiToken(apiToken)).finally(
                         () => dispatch(navigateToRootProject));
                 } else {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list