Setup flask-user manager.

def setup_user_manager(app):
    """Setup flask-user manager."""

    from flask_user import SQLAlchemyAdapter

    from rio.models import User

    init = dict(
        db_adapter=SQLAlchemyAdapter(db, User),
    )
    user_manager.init_app(app, **init)