Viblo
  • Posts
  • Questions
  • Discussions
Announcements
No announcement yet.
All Announcements

Thanh Nguyen

@adamhoang308

Report
  • Posts
  • Series
  • Questions
  • Answers
  • Clips
  • Followings
  • Followers
  • Tags
  • Reputations
  • Communication

Lỗi HTTP Origin header didn't match request.base_url

Thanh Nguyen
Answered Jun 16th, 2020 10:26 AM

Trong phần mô tả em đã ghi thiếu: Em chạy frontend ở port 3001 và backend ở port 3000, cảm ơn mọi người

+1

Quản lý hạn chế 2 thiết bị đăng nhập

Thanh Nguyen
Answered Mar 15th, 2020 10:54 AM

Mình nghĩ liệu có thể làm như sau:

  • Add thêm field count_device_logged_in (đếm số lượng device đã login) vào bảng users của bạn
  • Khởi tạo field trên bằng 0 cho mọi user
  • Mỗi lần đăng nhập thành công thì +1 cho field đó (update trong csdl)
  • Mỗi lần đăng xuất thành công thì -1 cho field đó (update trong csdl)
  • Khi đăng nhập mà user có field trên = 2 rồi thì không cho đăng nhập thêm.
+1

Total post views

0

Reputations

153

Following tags

8

Following users

29

Followers

5

Posts

0

Clips

93

Total questions

9

Total answers

2

Technical skills


Ruby Ruby on Rails

Organization


Have no organizations yet.

Posts tendency


Resources

  • Posts
  • Organizations
  • Questions
  • Tags
  • Videos
  • Authors
  • Discussions
  • Recommend System
  • Tools
  • Machine Learning
  • System Status

Services

  • Viblo CV Viblo Code
  • Viblo CV Viblo CV
  • Viblo CTF Viblo CTF

Mobile App

Get it on Google Play Download on the App Store
QR code

Links

  • Atom Icon

© 2021 Viblo. All rights reserved.

  • About Us
  • Feedback
  • Help
  • FAQs
  • RSS
  • Terms
  • DMCA.com Protection Status