play-authenticate icon indicating copy to clipboard operation
play-authenticate copied to clipboard

Cannot merge accounts

Open nguyenlocduy opened this issue 10 years ago • 1 comments

I got this error when trying to merge 2 accounts:

[PersistenceException: The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programatically via registerServer()]

in User model line 398

// deactivate the merged user that got added to this one
397     otherUser.active = false;
398     Ebean.save(Arrays.asList(new User[]{otherUser, this}));
399 }
400
401 public static User create(final AuthUser authUser) {
402     final User user = new User();
403     // user.roles = Collections.singletonList(SecurityRole

nguyenlocduy avatar Nov 28 '13 16:11 nguyenlocduy

Have you set up Ebean? You should have something like this in your conf/application.conf:

ebean.default="models.*"

smola avatar Jan 20 '14 07:01 smola