[PR #24395] feat: auto-login after admin account setup #30610

Closed
opened 2026-02-21 20:47:52 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/24395

State: closed
Merged: Yes


Summary

  • Implemented automatic login after admin account creation during initial setup
  • Users are now directly redirected to the apps page after setup completion
  • Eliminates the need to manually login with the same credentials just created

Related Issue

Fixes #24394

https://github.com/user-attachments/assets/a45322b9-51e6-4692-87a6-610f78e73bdf

Implementation Details

The solution is implemented entirely in the frontend by:

  1. After successful admin account setup, automatically calling the login API with the same credentials
  2. Storing the returned access_token and refresh_token in localStorage
  3. Redirecting to /apps instead of /signin
  4. Includes fallback behavior to redirect to signin if auto-login fails
**Original Pull Request:** https://github.com/langgenius/dify/pull/24395 **State:** closed **Merged:** Yes --- ## Summary - Implemented automatic login after admin account creation during initial setup - Users are now directly redirected to the apps page after setup completion - Eliminates the need to manually login with the same credentials just created ## Related Issue Fixes #24394 https://github.com/user-attachments/assets/a45322b9-51e6-4692-87a6-610f78e73bdf ## Implementation Details The solution is implemented entirely in the frontend by: 1. After successful admin account setup, automatically calling the login API with the same credentials 2. Storing the returned access_token and refresh_token in localStorage 3. Redirecting to /apps instead of /signin 4. Includes fallback behavior to redirect to signin if auto-login fails
yindo added the pull-request label 2026-02-21 20:47:52 -05:00
yindo closed this issue 2026-02-21 20:47:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30610