コード例 #1
0
ファイル: UserManager.cs プロジェクト: KennethLauge/BizDoc
        public static User createUserFromInvite(string email, bool signature)
        {
            User user = new User();

            UserEmail userEmail = new UserEmail { email = email, user = user, inUse = true };

            repo.Create(user);
            new UserEmailRepository().Create(userEmail);

            //Create notification
            NotificationManager.create(user, "Velkommen til BizDoc, kom i gang med at redigere dine brugeroplysninger.", "/Bruger/Indstillinger#/Bruger/Stamoplysninger");

            return user;
        }
コード例 #2
0
ファイル: UserManager.cs プロジェクト: KennethLauge/BizDoc
        public static User createUser(string email, string password)
        {
            User user = new User();
            user.setPassword(password);
            user.signedUp = true;

            UserEmail userEmail = new UserEmail { email = email, user = user, inUse = true };

            repo.Create(user);
            new UserEmailRepository().Create(userEmail);

            //Create notification
            NotificationManager.create(user, "Velkommen til BizDoc, kom i gang med at redigere dine brugeroplysninger.", "/Bruger/Indstillinger#/Bruger/Stamoplysninger");

            return user;
        }