Git Product home page Git Product logo

Comments (3)

brockallen avatar brockallen commented on May 30, 2024

First of all, your HTTP call could have side effects given that it do this via a GET, which is incorrect. You should build a proper registration app.

Second, at that point you just need access to the MR DB -- look at the samples in the MR repo for that. You need a repository and a MR user account service. They have APIs. In fact there are some docs here:

https://github.com/brockallen/BrockAllen.MembershipReboot/wiki

from identityserver3.membershipreboot.

pircjernej avatar pircjernej commented on May 30, 2024

Thanks 1 googol times.
I am new on MVC so all this code is a little distant for me, but I trying :-)

I know that this is not the way how to do this, but I just need some starting push tu understand,
how to add data to database with already made code.

I learn a lot last 10 days...

So the solution for
// ? missing code

                var ur = new CustomUserRepository(new CustomDatabase("MembershipReboot"));
                var uas = new CustomUserAccountService(new CustomConfig(), ur);
                uas.CreateAccount("user", "pass", "email");

from identityserver3.membershipreboot.

brockallen avatar brockallen commented on May 30, 2024

Yea, something like that (except you might be missing a call to Dispose on the DB object).

from identityserver3.membershipreboot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.