忘记了sqlite3 root passward,用户名也想知道用户名和密码

'''

// here we are fetching the data by using our subject 

import { Component,OnInit,Input } from '@angular/core';
import { StarwarsService } from '../starwars.service';


@Component({
  selector: 'app-footer',templateUrl: './footer.component.html',styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {

  personData: any;
  constructor(private starwarsService: StarwarsService) { }

  ngOnInit() {

// "starwarsData" is our key name which have our data 
   this.starwarsService.on('starwarsData').subscribe(response => {
      console.log(response);
      this.personData = response;
   });
  }

}

'''  我将此行添加到ruby文本文件中,然后当我重新加载文件时,需要使用用户名和密码进行身份验证,并且我知道我没有为root设置任何密码,但是当我提交用户名和密码时(没有任何密码)东西),但我收到验证错误。

我将此代码添加到该文件中 '''

http_basic_authenticate_with name: "dhh",password: "secret",except: [:index,:show]

'''

liuqiang5387 回答:忘记了sqlite3 root passward,用户名也想知道用户名和密码

我在该查询中发现我的错误,是否有人会卡在那里,然后使用用户名“ dhh ”和密码“ 秘密

原因是,无论我们在ruby on rails上添加的代码是什么,也都指定了用户名和密码 例如 '''

http_basic_authenticate_with name: "dhh",password: "secret",except: [:index,:show]

'''

您可以看到用户名和密码,也可以更改它。

本文链接:https://www.f2er.com/2989061.html

大家都在问